From: Adam Dickmeiss Date: Tue, 20 Sep 1994 09:02:30 +0000 (+0000) Subject: Added Make distclean. This cleans up the system and removes X-Git-Tag: ZEBRA.1.0~861 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=efbf941bb7e3eae801149c6b50456dd50a2b127a;p=idzebra-moved-to-github.git Added Make distclean. This cleans up the system and removes dependancy lines in sub-Makefiles. This simplifies preparation of a distribution of alex. --- diff --git a/Makefile b/Makefile index 588d2cf..b8376bb 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ # Copyright (C) 1994, Index Data I/S # All rights reserved. # Sebastian Hammer, Adam Dickmeiss -# $Id: Makefile,v 1.11 1994-09-12 08:01:41 quinn Exp $ +# $Id: Makefile,v 1.12 1994-09-20 09:02:30 adam Exp $ SHELL=/bin/sh SUBDIR=util bfile dict isam @@ -16,11 +16,17 @@ clean: for i in $(SUBDIR); do (cd $$i; make clean); done cleanup: - rm -f `find $(SUBDIR) -name "*.o" -print` + rm -f `find $(SUBDIR) -name "*.[oa]" -print` rm -f `find $(SUBDIR) -name "core" -print` rm -f `find $(SUBDIR) -name "errlist" -print` rm -f `find $(SUBDIR) -name "a.out" -print` +distclean: cleanup clean + for i in $(SUBDIR); do (cd $$i; \ + mv Makefile Makefile.old; \ + sed '/^#Depend/q' Makefile; \ + rm Makefile.old); done + wc: wc `find . -name '*.[ch]'`