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 / lib / C / fake / 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=lib/C/fake
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 INSTALLDIR=`echo $installdir | sed -e 's,\./i,\$(TOP)/i,'`
26 DATE=`date`
27
28 $spitshell >Makefile <<!GROK!THIS!
29 ########################################################################
30 # Makefile generated from Makefile.SH on $DATE
31
32 SHELL = /bin/sh
33 JMAKE = jmake
34 TOP = ../../..
35 CURRENT = $CURRENT
36 DIR = $DIR
37 INSTALL = $INSTALL
38 INSTALLDIR = $INSTALLDIR
39
40 ########################################################################
41 # Parameters set by Configure -- edit config.sh if changes are needed
42
43 CTAGS = ctags
44 MAKE = make
45 MV = $mv
46 PRIVLIB = $installprivlib
47 RM = $rm -f
48
49 !GROK!THIS!
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 $
54
55 ########################################################################
56 # Start of Jmakefile
57
58 # $X-Id: Jmakefile,v 3.0.1.1 1994/01/24 13:43:44 ram Exp ram $
59 #
60 #  Copyright (c) 1991-1993, Raphael Manfredi
61 #  
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.
67 #
68 # $X-Log: Jmakefile,v $
69 # Revision 3.0.1.1  1994/01/24  13:43:44  ram
70 # patch16: created
71 #
72
73 FILES = dup2.C getopt.C rename.C scandir.C setsid.C
74
75 INSTALLFLAGS = -m 444
76
77 all::
78
79 install::
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); \
83         done
84
85 install:: $(FILES)
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); \
89         done
90
91 deinstall::
92         @case '${MFLAGS}' in *[i]*) set +e;; esac; \
93         for i in $(FILES); do \
94                 (set -x; $(RM) $(PRIVLIB)/lib/C/fake/$$i); \
95         done
96
97 ########################################################################
98 # Common rules for all Makefiles -- do not edit
99
100 emptyrule::
101
102 clean: local_clean
103 realclean: local_realclean
104 clobber: local_clobber
105
106 local_clean::
107         $(RM) core *~ *.o
108
109 local_realclean:: local_clean
110
111 local_clobber:: local_realclean
112         $(RM) Makefile config.sh
113
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~; \
119                 fi; \
120                 echo "  $(JMAKE) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT)" ; \
121                 $(JMAKE) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT) ; \
122         else touch $@; exit 0; fi
123
124 Makefile: Makefile.SH
125         /bin/sh Makefile.SH
126
127 tags::
128         $(CTAGS) -w *.[ch]
129         $(CTAGS) -xw *.[ch] > tags
130
131 local_clobber::
132         $(RM) tags
133
134 ########################################################################
135 # Empty rules for directories with no sub-directories -- do not edit
136
137 install::
138         @echo "install in $(CURRENT) done."
139
140 deinstall::
141         @echo "deinstall in $(CURRENT) done."
142
143 install.man::
144         @echo "install.man in $(CURRENT) done."
145
146 deinstall.man::
147         @echo "deinstall.man in $(CURRENT) done."
148
149 Makefiles::
150
151 Makefiles.SH::
152
153 !NO!SUBS!
154 chmod 644 Makefile
155 $eunicefix Makefile
156