X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=Makefile;h=b8376bb8c400dc88e216ae7f5db620b1ce9d348d;hb=65f913b1b012be7e047bedcc318c069e9872d270;hp=cb50afd23dda2ae862d48633e81896fed509e676;hpb=4f7ad627a0b5b949b051aa603e05c3418de06977;p=idzebra-moved-to-github.git diff --git a/Makefile b/Makefile index cb50afd..b8376bb 100644 --- a/Makefile +++ b/Makefile @@ -1,19 +1,32 @@ # Copyright (C) 1994, Index Data I/S # All rights reserved. # Sebastian Hammer, Adam Dickmeiss -# $Id: Makefile,v 1.7 1994-08-18 11:02:08 adam Exp $ +# $Id: Makefile,v 1.12 1994-09-20 09:02:30 adam Exp $ -SUBDIR=util bfile dict +SHELL=/bin/sh +SUBDIR=util bfile dict isam all: - for i in $(SUBDIR); do (cd $$i; make); done + for i in $(SUBDIR); do cd $$i; if make; then cd ..; else exit 1; fi; done dep depend: - for i in $(SUBDIR); do (cd $$i; echo >.depend; make dep); done + for i in $(SUBDIR); do (cd $$i; make dep); done clean: for i in $(SUBDIR); do (cd $$i; make clean); done +cleanup: + 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]'`