1 # Copyright (C) 1994, Index Data I/S
3 # Sebastian Hammer, Adam Dickmeiss
4 # $Id: Makefile,v 1.2 1995-03-14 16:59:05 quinn Exp $
9 SUBDIR=odr asn yazlib server
12 for i in $(SUBDIR); do cd $$i; if $(MAKE) CFLAGS="$(CFLAGS)"; then cd ..; else exit 1; fi; done
15 for i in $(SUBDIR); do cd $$i; if $(MAKE) depend; then cd ..; else exit 1; fi; done
18 for i in $(SUBDIR); do (cd $$i; $(MAKE) clean); done
21 rm -f `find $(SUBDIR) -name "*.[oa]" -print`
22 rm -f `find $(SUBDIR) -name "core" -print`
23 rm -f `find $(SUBDIR) -name "errlist" -print`
24 rm -f `find $(SUBDIR) -name "a.out" -print`
26 distclean: cleanup clean
27 for i in $(SUBDIR); do (cd $$i; \
28 mv Makefile Makefile.old; \
29 sed '/^#Depend/q' <Makefile.old >Makefile; \
30 rm Makefile.old); done
33 for i in $(SUBDIR); do (cd $$i; \
34 mv Makefile Makefile.tmp; \
35 sed 's/^if/#if/' <Makefile.tmp|sed 's/^include/#include/'| \
36 sed 's/^endif/#endif/' | \
37 sed 's/^depend: depend2/depend: depend1/g' >Makefile; \
38 rm Makefile.tmp); done
41 for i in $(SUBDIR); do (cd $$i; \
42 mv Makefile Makefile.tmp; \
43 sed '/^#Depend/q' <Makefile.tmp| \
44 sed 's/^#if/if/' |sed 's/^#include/include/'| \
45 sed 's/^#endif/endif/' | \
46 sed 's/^depend: depend1/depend: depend2/g' >Makefile; \
47 rm Makefile.tmp); done
50 wc `find . -name '*.[ch]'`