X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=Makefile;h=b8376bb8c400dc88e216ae7f5db620b1ce9d348d;hb=65f913b1b012be7e047bedcc318c069e9872d270;hp=69c3aa852ac9e38d526474c45ac4b5a7a5ad19e3;hpb=3dd5f15cf91fe4ee7f957121cb683c57767106f5;p=idzebra-moved-to-github.git diff --git a/Makefile b/Makefile index 69c3aa8..b8376bb 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,32 @@ # Copyright (C) 1994, Index Data I/S # All rights reserved. # Sebastian Hammer, Adam Dickmeiss -# $Id: Makefile,v 1.3 1994-08-16 16:21:47 adam Exp $ +# $Id: Makefile,v 1.12 1994-09-20 09:02:30 adam Exp $ -SUBDIR=util bfile +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: - for i in $(SUBDIR); do (cd $$i; echo >.depend; make dep); done +dep depend: + 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]'` +