summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDan Nicholson <dbn.lists@gmail.com>2008-05-07 11:35:23 -0700
committerDan Nicholson <dbn.lists@gmail.com>2008-05-07 11:35:23 -0700
commita6464b3cb08b86d5fc537a4907849546a63ae4da (patch)
treee3f780df1222827ca5a622c3f5f76b240f132ad6 /Makefile
parentdf8134c3cf53a2e4363f27e9a1266e685ca7f0e7 (diff)
Never fail `make clean'
Mostly some pedantic changes such that `make clean' always ignores errors. Also changed the top clean target to do the `touch configs/current' dance instead of realclean.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index df0a0e91e3d..96d38858492 100644
--- a/Makefile
+++ b/Makefile
@@ -17,16 +17,16 @@ doxygen:
cd doxygen && $(MAKE)
clean:
- @for dir in $(SUBDIRS) ; do \
+ -@touch $(TOP)/configs/current
+ -@for dir in $(SUBDIRS) ; do \
if [ -d $$dir ] ; then \
(cd $$dir && $(MAKE) clean) ; \
fi \
done
+ -@test -s $(TOP)/configs/current || rm -f $(TOP)/configs/current
-realclean:
- touch $(TOP)/configs/current
- $(MAKE) clean
+realclean: clean
-rm -rf lib*
-rm -f $(TOP)/configs/current
-rm -f $(TOP)/configs/autoconf