X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=Makefile;h=c0272ffa1d704f86d84812d5d6aa2bd407e5a616;hb=caa7fe057dd8617129577a6725d2c4e3da066857;hp=719c68b2decaedfd38e0e0d9a4cd493e3c45950a;hpb=cf70c27c7785e1936a7b39bf112bf53bb641ab30;p=idzebra-moved-to-github.git diff --git a/Makefile b/Makefile index 719c68b..c0272ff 100644 --- a/Makefile +++ b/Makefile @@ -1,19 +1,23 @@ # Copyright (C) 1994, Index Data I/S # All rights reserved. # Sebastian Hammer, Adam Dickmeiss -# $Id: Makefile,v 1.13 1994-09-22 10:38:34 quinn Exp $ +# $Id: Makefile,v 1.26 1995-09-04 12:32:45 adam Exp $ SHELL=/bin/sh -SUBDIR=util bfile dict +MAKE=make +SUBDIR=util str bfile dfa dict isam rset index it base +RANLIB=ranlib +YAZ=../../yaz all: - for i in $(SUBDIR); do cd $$i; if make; then cd ..; else exit 1; fi; done + for i in $(SUBDIR); do cd $$i; if $(MAKE) YAZ="$(YAZ)" RANLIB="$(RANLIB)" CFLAGS="$(CFLAGS)" CC="$(CC)"; then cd ..; else exit 1; fi; done dep depend: - for i in $(SUBDIR); do (cd $$i; make dep); done + for i in $(SUBDIR); do cd $$i; if $(MAKE) YAZ="$(YAZ)" depend; then cd ..; else exit 1; fi; done clean: - for i in $(SUBDIR); do (cd $$i; make clean); done + for i in $(SUBDIR); do (cd $$i; $(MAKE) clean); done + rm -f lib/*.a cleanup: rm -f `find $(SUBDIR) -name "*.[oa]" -print` @@ -21,12 +25,27 @@ cleanup: rm -f `find $(SUBDIR) -name "errlist" -print` rm -f `find $(SUBDIR) -name "a.out" -print` -distclean: cleanup clean +cleandepend: for i in $(SUBDIR); do (cd $$i; \ - mv Makefile Makefile.old; \ - sed '/^#Depend/q' Makefile; \ - rm Makefile.old); done - + if sed '/^#Depend/q' Makefile.tmp; then \ + mv -f Makefile.tmp Makefile; fi; rm -f .depend); done + +taildepend: + for i in $(SUBDIR); do (cd $$i; \ + if sed 's/^if/#if/' Makefile.tmp; then \ + mv -f Makefile.tmp Makefile; fi); done + +gnudepend: + for i in $(SUBDIR); do (cd $$i; \ + if sed '/^#Depend/q' Makefile.tmp;then \ + mv -f Makefile.tmp Makefile; fi); done + wc: wc `find . -name '*.[ch]'`