home *** CD-ROM | disk | FTP | other *** search
Makefile | 1991-03-03 | 1.0 KB | 60 lines |
- case $CONFIG in
- '')
- if test ! -f config.sh; then
- ln ../config.sh . || \
- ln ../../config.sh . || \
- ln ../../../config.sh . || \
- (echo "Can't find config.sh."; exit 1)
- fi
- . config.sh
- ;;
- esac
- case "$0" in
- */*) cd `expr X$0 : 'X\(.*\)/'` ;;
- esac
- echo "Extracting Makefile (with variable substitutions)"
- $spitshell >Makefile <<!GROK!THIS!
- #
- # Makefile for mailagent
- #
-
- # $Id: Makefile.SH,v 2.0 91/02/19 15:48:41 ram Exp $
- #
- # $Log: Makefile.SH,v $
- # Revision 2.0 91/02/19 15:48:41 ram
- # Baseline for first official release.
- #
-
- SHELL = /bin/sh
-
- TARGETS = all install clean realclean
- SUBDIRS = btoa kit man
- RM = $rm
- !GROK!THIS!
- $spitshell >>Makefile <<'!NO!SUBS!'
-
- #
- # Building rules
- #
-
- $(TARGETS): makefiles
- $(MAKE) $(SUBDIRS) TARGET=$@
-
- .force:
-
- $(SUBDIRS): .force
- cd $@; $(MAKE) $(TARGET)
-
- makefiles:
- -@for dir in $(SUBDIRS); do \
- (cd $$dir && if test ! -f Makefile; then \
- sh Makefile.SH; fi) \
- done
-
- clobber: makefiles
- $(MAKE) $(SUBDIRS) TARGET=$@
- $(RM) -f config.h config.sh Makefile install
- !NO!SUBS!
- chmod 755 Makefile
- $eunicefix Makefile
-