This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Populate metaconfig branch.
[metaconfig.git] / dist-3.0at70b / bin / Makefile.SH
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 $
3
4 case $CONFIG in
5 '')
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=../../../..;
11         else
12                 echo "Can't find config.sh."; exit 1
13         fi
14         . $TOP/config.sh
15         ;;
16 esac
17 case "$0" in
18 */*) cd `expr X$0 : 'X\(.*\)/'` ;;
19 esac
20 CURRENT=bin
21 DIR=`echo $CURRENT/ | sed -e 's/\.\///g'`
22 echo "Extracting ${DIR}Makefile (with variable substitutions)"
23
24 INSTALL=`echo $install | sed -e 's,\./i,\$(TOP)/i,'`
25 DATE=`date`
26
27 $spitshell >Makefile <<!GROK!THIS!
28 ########################################################################
29 # Makefile generated from Makefile.SH on $DATE
30
31 SHELL = /bin/sh
32 JMAKE = jmake
33 TOP = ..
34 CURRENT = $CURRENT
35 DIR = $DIR
36 INSTALL = $INSTALL
37
38 ########################################################################
39 # Parameters set by Configure -- edit config.sh if changes are needed
40
41 CTAGS = ctags
42 L = $manext
43 MANSRC = $installmansrc
44 MAKE = make
45 MKDEP = $mkdep \$(DPFLAGS) --
46 MV = $mv
47 RM = $rm -f
48 SCRIPTDIR = $installscript
49 SED = $sed
50
51 ########################################################################
52 # Automatically generated parameters -- do not edit
53
54 SCRIPTS =  \$(BIN)
55
56 !GROK!THIS!
57 $spitshell >>Makefile <<'!NO!SUBS!'
58 ########################################################################
59 # Jmake rules for building libraries, programs, scripts, and data files
60 # $X-Id: Jmake.rules,v 3.0.1.1 1994/10/29 15:46:30 ram Exp ram $
61
62 ########################################################################
63 # Force 'make depend' to be performed first -- do not edit
64
65 .FORCE_DEPEND::
66
67 all:: .FORCE_DEPEND
68
69 ########################################################################
70 # Start of Jmakefile
71
72 # $X-Id: Jmakefile,v 3.0.1.1 1994/01/24 13:42:53 ram Exp ram $
73 #
74 #  Copyright (c) 1991-1993, Raphael Manfredi
75 #  
76 #  You may redistribute only under the terms of the Artistic Licence,
77 #  as specified in the README file that comes with the distribution.
78 #  You may reuse parts of this distribution only within the terms of
79 #  that same Artistic Licence; a copy of which may be found at the root
80 #  of the source tree for dist 3.0.
81 #
82 # $X-Log: Jmakefile,v $
83 # Revision 3.0.1.1  1994/01/24  13:42:53  ram
84 # patch16: added dependency generation stage
85 #
86 # Revision 3.0  1993/08/18  12:04:00  ram
87 # Baseline for dist 3.0 netwide release.
88 #
89
90 BINPL = packinit manilist
91 BIN = manicheck $(BINPL)
92
93 all:: $(BIN)
94
95 local_realclean::
96         $(RM) $(BIN)
97
98 manicheck: manicheck.SH
99         /bin/sh manicheck.SH
100
101 packinit: packinit.SH
102         /bin/sh packinit.SH
103
104 manilist: manilist.SH
105         /bin/sh manilist.SH
106
107
108 install:: $(SCRIPTS) $(LSCRIPTS)
109         @for file in $(SCRIPTS) $(LSCRIPTS); do \
110                 case '${MFLAGS}' in *[i]*) set +e;; esac; \
111                 (set -x; $(INSTALL) -c -m 555 $$file $(SCRIPTDIR)); \
112         done
113
114 deinstall::
115         @for file in $(SCRIPTS) $(LSCRIPTS); do \
116                 case '${MFLAGS}' in *[i]*) set +e;; esac; \
117                 (set -x; $(RM) $(SCRIPTDIR)/$$file); \
118         done
119
120 install.man::
121         @if test "$(MANSRC)"; then \
122                 case '${MFLAGS}' in *[i]*) set +e;; esac; \
123                 for file in $(SCRIPTS); do \
124                         (set -x; \
125                         $(INSTALL) -c -m 444 $$file.man $(MANSRC)/$$file.$(L)); \
126                 done; \
127         else exit 0; fi
128
129 deinstall.man::
130         @if test "$(MANSRC)"; then \
131                 case '${MFLAGS}' in *[i]*) set +e;; esac; \
132                 for file in $(SCRIPTS); do \
133                         (set -x; $(RM) $(MANSRC)/$$file.$(L)); \
134                 done; \
135         else exit 0; fi
136
137 BINSH = \
138         packinit.SH \
139         manilist.SH 
140
141 depend::
142         ($(SED) '/^# DO NOT DELETE/q' Makefile && \
143         grep '^\$$grep' $(BINSH) | \
144         $(SED) -e "s/^.*' \([^ ]*\) >>[ ]*\([^ ]*\)/\2: \1/" \
145         ) > Makefile.new
146         cp Makefile Makefile.bak
147         cp Makefile.new Makefile
148         $(RM) Makefile.new
149
150 ########################################################################
151 # Common rules for all Makefiles -- do not edit
152
153 emptyrule::
154
155 clean: local_clean
156 realclean: local_realclean
157 clobber: local_clobber
158
159 local_clean::
160         $(RM) core *~ *.o
161
162 local_realclean:: local_clean
163
164 local_clobber:: local_realclean
165         $(RM) Makefile config.sh
166
167 Makefile.SH: Jmakefile
168         -@if test -f $(TOP)/.package; then \
169                 if test -f Makefile.SH; then \
170                         echo "  $(RM) Makefile.SH~; $(MV) Makefile.SH Makefile.SH~"; \
171                         $(RM) Makefile.SH~; $(MV) Makefile.SH Makefile.SH~; \
172                 fi; \
173                 echo "  $(JMAKE) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT)" ; \
174                 $(JMAKE) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT) ; \
175         else touch $@; exit 0; fi
176
177 Makefile: Makefile.SH
178         /bin/sh Makefile.SH
179
180 tags::
181         $(CTAGS) -w *.[ch]
182         $(CTAGS) -xw *.[ch] > tags
183
184 local_clobber::
185         $(RM) tags
186
187 ########################################################################
188 # Empty rules for directories with no sub-directories -- do not edit
189
190 install::
191         @echo "install in $(CURRENT) done."
192
193 deinstall::
194         @echo "deinstall in $(CURRENT) done."
195
196 install.man::
197         @echo "install.man in $(CURRENT) done."
198
199 deinstall.man::
200         @echo "deinstall.man in $(CURRENT) done."
201
202 Makefiles::
203
204 Makefiles.SH::
205
206 ########################################################################
207 # Dependencies generated by make depend
208 # DO NOT DELETE THIS LINE -- make depend relies on it
209
210 # Put nothing here or make depend will gobble it up
211 .FORCE_DEPEND::
212         @echo "You must run 'make depend' in $(TOP) first."; exit 1
213 !NO!SUBS!
214 chmod 644 Makefile
215 $eunicefix Makefile
216