1 : Makefile.SH generated from Jmake.tmpl and Jmakefile [jmake 3.0 PL44]
2 : $X-Id: Jmake.tmpl,v 3.0.1.1 1993/08/20 07:36:36 ram Exp ram $
6 if test -f config.sh; then TOP=.;
7 elif test -f ../config.sh; then TOP=..;
8 elif test -f ../../config.sh; then TOP=../..;
9 elif test -f ../../../config.sh; then TOP=../../..;
10 elif test -f ../../../../config.sh; then TOP=../../../..;
12 echo "Can't find config.sh."; exit 1
18 */*) cd `expr X$0 : 'X\(.*\)/'` ;;
21 DIR=`echo $CURRENT/ | sed -e 's/\.\///g'`
22 echo "Extracting ${DIR}Makefile (with variable substitutions)"
24 INSTALL=`echo $install | sed -e 's,\./i,\$(TOP)/i,'`
25 INSTALLDIR=`echo $installdir | sed -e 's,\./i,\$(TOP)/i,'`
28 $spitshell >Makefile <<!GROK!THIS!
29 ########################################################################
30 # Makefile generated from Makefile.SH on $DATE
38 INSTALLDIR = $INSTALLDIR
40 ########################################################################
41 # Parameters set by Configure -- edit config.sh if changes are needed
46 PRIVLIB = $installprivlib
50 $spitshell >>Makefile <<'!NO!SUBS!'
51 ########################################################################
52 # Jmake rules for building libraries, programs, scripts, and data files
53 # $X-Id: Jmake.rules,v 3.0.1.1 1994/10/29 15:46:30 ram Exp ram $
55 ########################################################################
58 # $X-Id: Jmakefile,v 3.0.1.1 1994/01/24 13:43:44 ram Exp ram $
60 # Copyright (c) 1991-1993, Raphael Manfredi
62 # You may redistribute only under the terms of the Artistic Licence,
63 # as specified in the README file that comes with the distribution.
64 # You may reuse parts of this distribution only within the terms of
65 # that same Artistic Licence; a copy of which may be found at the root
66 # of the source tree for dist 3.0.
68 # $X-Log: Jmakefile,v $
69 # Revision 3.0.1.1 1994/01/24 13:43:44 ram
73 FILES = dup2.C getopt.C rename.C scandir.C setsid.C
80 @for dir in $(PRIVLIB)/lib/C/fake; do \
81 case '${MFLAGS}' in *[i]*) set +e;; esac; \
82 (set -x; test -d $$dir || $(INSTALLDIR) $$dir); \
86 @case '${MFLAGS}' in *[i]*) set +e;; esac; \
87 for i in $(FILES); do \
88 (set -x; $(INSTALL) -c $(INSTALLFLAGS) $$i $(PRIVLIB)/lib/C/fake); \
92 @case '${MFLAGS}' in *[i]*) set +e;; esac; \
93 for i in $(FILES); do \
94 (set -x; $(RM) $(PRIVLIB)/lib/C/fake/$$i); \
97 ########################################################################
98 # Common rules for all Makefiles -- do not edit
103 realclean: local_realclean
104 clobber: local_clobber
109 local_realclean:: local_clean
111 local_clobber:: local_realclean
112 $(RM) Makefile config.sh
114 Makefile.SH: Jmakefile
115 -@if test -f $(TOP)/.package; then \
116 if test -f Makefile.SH; then \
117 echo " $(RM) Makefile.SH~; $(MV) Makefile.SH Makefile.SH~"; \
118 $(RM) Makefile.SH~; $(MV) Makefile.SH Makefile.SH~; \
120 echo " $(JMAKE) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT)" ; \
121 $(JMAKE) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT) ; \
122 else touch $@; exit 0; fi
124 Makefile: Makefile.SH
129 $(CTAGS) -xw *.[ch] > tags
134 ########################################################################
135 # Empty rules for directories with no sub-directories -- do not edit
138 @echo "install in $(CURRENT) done."
141 @echo "deinstall in $(CURRENT) done."
144 @echo "install.man in $(CURRENT) done."
147 @echo "deinstall.man in $(CURRENT) done."