1 # Copyright (C) 1994, Index Data I/S
3 # Sebastian Hammer, Adam Dickmeiss
4 # $Id: Makefile,v 1.31 1995-10-12 12:38:40 adam Exp $
8 SUBDIR=util str bfile dfa dict isam rset data1 index base
11 OSILIB=../../xtimosi/src/libmosi.a $(YAZ)/lib/librfc.a
14 for i in $(SUBDIR); do cd $$i; if $(MAKE) OSILIB="$(OSILIB)" YAZ="$(YAZ)" RANLIB="$(RANLIB)" CFLAGS="$(CFLAGS)" CC="$(CC)"; then cd ..; else exit 1; fi; done
17 for i in $(SUBDIR); do cd $$i; if $(MAKE) YAZ="$(YAZ)" depend; then cd ..; else exit 1; fi; done
20 for i in $(SUBDIR); do (cd $$i; $(MAKE) clean); done
24 rm -f `find $(SUBDIR) -name "*.[oa]" -print`
25 rm -f `find $(SUBDIR) -name "core" -print`
26 rm -f `find $(SUBDIR) -name "errlist" -print`
27 rm -f `find $(SUBDIR) -name "a.out" -print`
30 for i in $(SUBDIR); do (cd $$i; \
31 if sed '/^#Depend/q' <Makefile >Makefile.tmp; then \
32 mv -f Makefile.tmp Makefile; fi; rm -f .depend); done
35 for i in $(SUBDIR); do (cd $$i; \
36 if sed 's/^if/#if/' <Makefile|sed 's/^include/#include/'| \
37 sed 's/^endif/#endif/' | \
38 sed 's/^depend: depend2/depend: depend1/g' | \
39 sed '/^#Depend/q' >Makefile.tmp; then \
40 mv -f Makefile.tmp Makefile; fi); done
43 for i in $(SUBDIR); do (cd $$i; \
44 if sed '/^#Depend/q' <Makefile| \
45 sed 's/^#if/if/' |sed 's/^#include/include/'| \
46 sed 's/^#endif/endif/' | \
47 sed 's/^depend: depend1/depend: depend2/g' >Makefile.tmp;then \
48 mv -f Makefile.tmp Makefile; fi); done
51 wc `find . -name '*.[ch]'`