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:
Mark 2004-02-10 17:06:11 +00:00
parent 451993317f
commit 7b581339c9
10 changed files with 50 additions and 27 deletions

View file

@ -75,7 +75,17 @@ clean:
(cd pcre; $(MAKE) $@)
(cd curl; $(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)
$(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
$(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

View file

@ -11,7 +11,10 @@ all: $(OBJS)
$(CC) $(CFLAGS) $(INCLUDES) -c $<
clean:
$(RM) *.o *.lo *.so *.a
$(RM) *.o *.lo *.so *.a *.exe config.h
distclean:
$(RM) *.o *.lo *.so *.a *.exe config.h
depend:
$(CC) -MM $(INCLUDES) $(CFLAGS) $(SRCS) > .depend

View file

@ -27,7 +27,10 @@ redoparser:
mv -f y.tab.c getdate.c
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:

View file

@ -22,3 +22,12 @@ all clean ::
echo "<=== $(SDP)modules/$$i"; \
fi; \
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

View file

@ -28,7 +28,10 @@ $(TARGET): $(OBJS)
# How to clean up files created by the build process
clean:
$(RM) *.o *.lo *.so *.d
$(RM) *.o *.lo *.so *.d *.dll
distclean:
$(RM) *.o *.lo *.so *.d *.dll
# How to install this module
# TARGET will be that defined for building in the Module makefile

View file

@ -14,6 +14,9 @@ all: $(OBJS)
clean:
$(RM) *.o *.lo *.so *.a
distclean:
$(RM) *.o *.lo *.so *.a
depend:
$(CC) -MM $(INCLUDES) $(KEEPERCFLAGS) $(SRCS) > .depend

View file

@ -22,7 +22,10 @@ chartables.c: dftables
./dftables >./chartables.c
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:

View file

@ -55,5 +55,8 @@ dist:
done
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

View file

@ -22,8 +22,11 @@ configtool:
clean:
(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_PROGRAM) kptool @prefix@

View file

@ -21,6 +21,9 @@ configtool: $(OBJS)
clean:
$(RM) *.o *.lo *.so *.a configtool
distclean:
$(RM) *.o *.lo *.so *.a configtool
install:
depend: