# Top level Makefile for Email gateway.
# Europagate, 1994-1995.
#
-# $Id: Makefile,v 1.19 1995/03/31 09:42:56 adam Exp $
+# $Id: Makefile,v 1.20 1995/04/17 09:31:02 adam Exp $
#
SHELL=/bin/sh
MAKE=make
cleandepend:
for i in $(SUBDIR); do (cd $$i; \
- mv Makefile Makefile.tmp; \
- sed '/^#Depend/q' <Makefile.tmp >Makefile; \
- rm Makefile.tmp; rm -f .depend); done
+ if sed '/^#Depend/q' <Makefile >Makefile.tmp; then \
+ mv -f Makefile.tmp Makefile; fi; rm -f .depend); done
taildepend:
for i in $(SUBDIR); do (cd $$i; \
- mv Makefile Makefile.tmp; \
- sed 's/^if/#xif/' <Makefile.tmp|sed 's/^include/#xinclude/'| \
- sed 's/^endif/#xendif/' | \
- sed 's/^depend: depend2/depend: depend1/g' >Makefile; \
- rm Makefile.tmp); done
+ if sed 's/^if/#if/' <Makefile|sed 's/^include/#include/'| \
+ sed 's/^endif/#endif/' | \
+ sed 's/^depend: depend2/depend: depend1/g' | \
+ sed '/^#Depend/q' >Makefile.tmp; then \
+ mv -f Makefile.tmp Makefile; fi); done
gnudepend:
for i in $(SUBDIR); do (cd $$i; \
- mv Makefile Makefile.tmp; \
- sed '/^#Depend/q' <Makefile.tmp| \
- sed 's/^#xif/if/' |sed 's/^#xinclude/include/'| \
- sed 's/^#xendif/endif/' | \
- sed 's/^depend: depend1/depend: depend2/g' >Makefile; \
- rm Makefile.tmp); done
+ if sed '/^#Depend/q' <Makefile| \
+ sed 's/^#if/if/' |sed 's/^#include/include/'| \
+ sed 's/^#endif/endif/' | \
+ sed 's/^depend: depend1/depend: depend2/g' >Makefile.tmp;then \
+ mv -f Makefile.tmp Makefile; fi); done
wc:
wc `find . -name '*.[ch]'`