Mailing List Archive

[PATCH] Making make clean really work (improved - w/o word wrap ;) )
I discovered that make clean didn't /really/ work due to someone having
a mental picture of find's operation that differed slightly from the one
find itself had ;)

patch: Rules-make-clean-target.patch
description: Make make clean clean
=============================================
--- cvs/netfilter/userspace/Rules.make Sun Jan 14 13:35:28 2001
+++ netfilter/userspace/Rules.make Tue Jul 24 23:44:30 2001
@@ -5,10 +5,12 @@
experimental: $(EXTRAS_EXP)

# Have to handle extensions which no longer exist.
+.PHONY: clean
clean: $(EXTRA_CLEANS)
rm -f $(SHARED_LIBS) $(EXTRAS) $(EXTRAS_EXP) $(SHARED_LIBS:%.so=%_sh.o)
- @find . -name '*.[ao]' -name '*.so' | xargs rm -f
+ @find . -name '*.[ao]' -o -name '*.so' | xargs rm -f

+.PHONY: install
install: all $(EXTRA_INSTALLS)
@if [ -f /usr/local/bin/iptables -a "$(BINDIR)" = "/usr/local/sbin" ];\
then echo 'Erasing iptables from old location (now /usr/local/sbin).';\

-Peter

PS: See also http://oss.one2one-networks.com/