diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-01-10 18:23:08 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-01-10 18:23:08 +0000 |
commit | 45dd00a858ab5294f218ab8cda1cc14e6daf7cbc (patch) | |
tree | 3ca971f913c5020e3a5c6801f71682d5e3a7ff6c /nuttx/netutils | |
parent | 28a9cfef1704bbb553cecc1527360553ad56f010 (diff) | |
download | px4-nuttx-45dd00a858ab5294f218ab8cda1cc14e6daf7cbc.tar.gz px4-nuttx-45dd00a858ab5294f218ab8cda1cc14e6daf7cbc.tar.bz2 px4-nuttx-45dd00a858ab5294f218ab8cda1cc14e6daf7cbc.zip |
Using tool-specific clean
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@545 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/netutils')
-rw-r--r-- | nuttx/netutils/Makefile | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/nuttx/netutils/Makefile b/nuttx/netutils/Makefile index 36f03d3b8..73e068500 100644 --- a/nuttx/netutils/Makefile +++ b/nuttx/netutils/Makefile @@ -50,6 +50,8 @@ include resolv/Make.defs endif endif +SUBDIRS = uiplib dhcpc dhcpd resolv smtp telnetd webclient webserver + ASRCS = $(UIPLIB_ASRCS) $(DHCPC_ASRCS) $(DHCPD_ASRCS) $(RESOLV_ASRCS) \ $(SMTP_ASRCS) $(TELNETD_ASRCS) $(WEBCLIENT_ASRCS) $(WEBSERVER_ASRCS) AOBJS = $(ASRCS:.S=$(OBJEXT)) @@ -90,9 +92,11 @@ endif depend: .depend clean: - @rm -f $(BIN) *.o *.obj *.rel *.asm *.lst *.sym *.adb *~ - @rm -f uiplib/*~ dhcpc/*~ dhcpd/*~ resolv/*~ smtp/*~ telnetd/*~ webclient/*~ webserver/*~ - @if [ ! -z "$(OBJEXT)" ]; then rm -f *$(OBJEXT); fi + @rm -f $(BIN) *~ .*.swp + $(call CLEAN) + @( for dir in $(SUBDIRS); do \ + rm $(dir)/*~ $(dir)/.*.swp; \ + done ; ) @$(MAKE) -C dhcpd -f Makefile.host clean distclean: clean |