fix make clean not cleaning some files and added new make distclean which will restore everything back to the original distribution
This commit is contained in:
parent
451993317f
commit
7b581339c9
10 changed files with 50 additions and 27 deletions
32
Makefile.in
32
Makefile.in
|
@ -75,7 +75,17 @@ clean:
|
||||||
(cd pcre; $(MAKE) $@)
|
(cd pcre; $(MAKE) $@)
|
||||||
(cd curl; $(MAKE) $@)
|
(cd curl; $(MAKE) $@)
|
||||||
(cd sqlsrv; $(MAKE) $@)
|
(cd sqlsrv; $(MAKE) $@)
|
||||||
$(RM) *.o neostats *.cache Makefile config.h Makefile.inc *.log *.a
|
$(RM) *.o neostats *.cache Makefile config.h Makefile.inc *.log *.a *.d *.exe
|
||||||
|
|
||||||
|
distclean:
|
||||||
|
(cd dl; $(MAKE) $@)
|
||||||
|
(cd adns; $(MAKE) $@)
|
||||||
|
(cd keeper; $(MAKE) $@)
|
||||||
|
(cd tools; $(MAKE) $@)
|
||||||
|
(cd pcre; $(MAKE) $@)
|
||||||
|
(cd curl; $(MAKE) $@)
|
||||||
|
(cd sqlsrv; $(MAKE) $@)
|
||||||
|
$(RM) *.o neostats *.cache Makefile config.h Makefile.inc *.log *.a *.d *.exe config.status
|
||||||
|
|
||||||
neostats: $(OBJS)
|
neostats: $(OBJS)
|
||||||
$(CC) $(LDFLAGS) $(OBJS) $(ADNS_OBJS) $(KEEPER_OBJS) $(PCRE_OBJS) curl/libcurl.a $(EXTRA_LDFLAGS) -o $@
|
$(CC) $(LDFLAGS) $(OBJS) $(ADNS_OBJS) $(KEEPER_OBJS) $(PCRE_OBJS) curl/libcurl.a $(EXTRA_LDFLAGS) -o $@
|
||||||
|
@ -149,23 +159,3 @@ dist:
|
||||||
|
|
||||||
# Catch any changes in compilation options at the top of this file
|
# Catch any changes in compilation options at the top of this file
|
||||||
$(OBJS): Makefile Makefile.inc
|
$(OBJS): Makefile Makefile.inc
|
||||||
|
|
||||||
dns.o: dns.c stats.h adns/adns.h list.h hash.h config.h log.h
|
|
||||||
chans.o: chans.c stats.h adns/adns.h list.h hash.h config.h dl.h log.h
|
|
||||||
dotconf.o: dotconf.c dotconf.h
|
|
||||||
services.o: services.c stats.h adns/adns.h list.h hash.h config.h dl.h log.h
|
|
||||||
main.o: main.c stats.h adns/adns.h list.h hash.h config.h dl.h conf.h log.h
|
|
||||||
sock.o: sock.c stats.h adns/adns.h list.h hash.h config.h dl.h conf.h log.h
|
|
||||||
conf.o: conf.c stats.h adns/adns.h list.h hash.h config.h dotconf.h conf.h dl.h log.h
|
|
||||||
ircd.o: ircd.c stats.h adns/adns.h list.h hash.h config.h dl.h log.h
|
|
||||||
timer.o: timer.c stats.h adns/adns.h list.h hash.h config.h dl.h log.h
|
|
||||||
users.o: users.c stats.h adns/adns.h list.h hash.h config.h dl.h log.h
|
|
||||||
ns_help.o: ns_help.c stats.h adns/adns.h list.h hash.h config.h
|
|
||||||
dl.o: dl.c dl.h hash.h stats.h adns/adns.h list.h config.h log.h
|
|
||||||
list.o: list.c list.h
|
|
||||||
hash.o: hash.c hash.h
|
|
||||||
server.o: server.c stats.h adns/adns.h list.h hash.h config.h log.h
|
|
||||||
keeper.o: keeper.c stats.h adns/adns.h list.h hash.h config.h keeper/keeper.h conf.h log.h
|
|
||||||
log.o: log.c stats.h adns/adns.h list.h hash.h config.h conf.h log.h
|
|
||||||
transfer.o: transfer.c transfer.h stats.h list.h
|
|
||||||
exclude.o: exclude.c exclude.h
|
|
||||||
|
|
|
@ -11,7 +11,10 @@ all: $(OBJS)
|
||||||
$(CC) $(CFLAGS) $(INCLUDES) -c $<
|
$(CC) $(CFLAGS) $(INCLUDES) -c $<
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(RM) *.o *.lo *.so *.a
|
$(RM) *.o *.lo *.so *.a *.exe config.h
|
||||||
|
|
||||||
|
distclean:
|
||||||
|
$(RM) *.o *.lo *.so *.a *.exe config.h
|
||||||
|
|
||||||
depend:
|
depend:
|
||||||
$(CC) -MM $(INCLUDES) $(CFLAGS) $(SRCS) > .depend
|
$(CC) -MM $(INCLUDES) $(CFLAGS) $(SRCS) > .depend
|
||||||
|
|
|
@ -27,7 +27,10 @@ redoparser:
|
||||||
mv -f y.tab.c getdate.c
|
mv -f y.tab.c getdate.c
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
/bin/rm -rf *.o config.h Makefile mycurl-config
|
/bin/rm -rf *.o config.h Makefile mycurl-config *.a *.log
|
||||||
|
|
||||||
|
distclean:
|
||||||
|
/bin/rm -rf *.o config.h Makefile mycurl-config *.a *.log config.status configure.lineno
|
||||||
|
|
||||||
install:
|
install:
|
||||||
|
|
||||||
|
|
|
@ -22,3 +22,12 @@ all clean ::
|
||||||
echo "<=== $(SDP)modules/$$i"; \
|
echo "<=== $(SDP)modules/$$i"; \
|
||||||
fi; \
|
fi; \
|
||||||
done
|
done
|
||||||
|
|
||||||
|
all distclean ::
|
||||||
|
@for i in $(MODULES) ""; do \
|
||||||
|
if [ "x$$i" != "x" ]; then \
|
||||||
|
echo "===> $(SDP)modules/$$i"; \
|
||||||
|
(cd $$i && $(MAKE) $@) || exit 1; \
|
||||||
|
echo "<=== $(SDP)modules/$$i"; \
|
||||||
|
fi; \
|
||||||
|
done
|
||||||
|
|
|
@ -28,7 +28,10 @@ $(TARGET): $(OBJS)
|
||||||
|
|
||||||
# How to clean up files created by the build process
|
# How to clean up files created by the build process
|
||||||
clean:
|
clean:
|
||||||
$(RM) *.o *.lo *.so *.d
|
$(RM) *.o *.lo *.so *.d *.dll
|
||||||
|
|
||||||
|
distclean:
|
||||||
|
$(RM) *.o *.lo *.so *.d *.dll
|
||||||
|
|
||||||
# How to install this module
|
# How to install this module
|
||||||
# TARGET will be that defined for building in the Module makefile
|
# TARGET will be that defined for building in the Module makefile
|
||||||
|
|
|
@ -14,6 +14,9 @@ all: $(OBJS)
|
||||||
clean:
|
clean:
|
||||||
$(RM) *.o *.lo *.so *.a
|
$(RM) *.o *.lo *.so *.a
|
||||||
|
|
||||||
|
distclean:
|
||||||
|
$(RM) *.o *.lo *.so *.a
|
||||||
|
|
||||||
depend:
|
depend:
|
||||||
$(CC) -MM $(INCLUDES) $(KEEPERCFLAGS) $(SRCS) > .depend
|
$(CC) -MM $(INCLUDES) $(KEEPERCFLAGS) $(SRCS) > .depend
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,10 @@ chartables.c: dftables
|
||||||
./dftables >./chartables.c
|
./dftables >./chartables.c
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(RM) *.o Makefile dftables ../pcre.h chartables.c config.h
|
$(RM) *.o Makefile dftables ../pcre.h chartables.c config.h *.exe
|
||||||
|
|
||||||
|
distclean:
|
||||||
|
$(RM) *.o Makefile dftables ../pcre.h chartables.c config.h *.exe
|
||||||
|
|
||||||
install:
|
install:
|
||||||
|
|
||||||
|
|
|
@ -55,5 +55,8 @@ dist:
|
||||||
done
|
done
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf *.o lib* parse.output parse.save
|
rm -rf *.o lib* Makefile parse.output parse.save
|
||||||
|
|
||||||
|
distclean:
|
||||||
|
rm -rf *.o lib* Makefile parse.output parse.save
|
||||||
|
|
||||||
|
|
|
@ -22,8 +22,11 @@ configtool:
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
(cd cfgtool; $(MAKE) $@)
|
(cd cfgtool; $(MAKE) $@)
|
||||||
$(RM) *.o *.lo *.so *.a kptool Makefile
|
$(RM) *.o *.lo *.so *.a kptool Makefile *.exe
|
||||||
|
|
||||||
|
distclean:
|
||||||
|
(cd cfgtool; $(MAKE) $@)
|
||||||
|
$(RM) *.o *.lo *.so *.a kptool Makefile *.exe
|
||||||
|
|
||||||
install:
|
install:
|
||||||
$(INSTALL_PROGRAM) kptool @prefix@
|
$(INSTALL_PROGRAM) kptool @prefix@
|
||||||
|
|
|
@ -21,6 +21,9 @@ configtool: $(OBJS)
|
||||||
clean:
|
clean:
|
||||||
$(RM) *.o *.lo *.so *.a configtool
|
$(RM) *.o *.lo *.so *.a configtool
|
||||||
|
|
||||||
|
distclean:
|
||||||
|
$(RM) *.o *.lo *.so *.a configtool
|
||||||
|
|
||||||
install:
|
install:
|
||||||
|
|
||||||
depend:
|
depend:
|
||||||
|
|
Reference in a new issue