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