Re: sh Configure?
[p5sagit/p5-mst-13.2.git] / x2p / Makefile.SH
old mode 100644 (file)
new mode 100755 (executable)
index e12a2de..ac36250
@@ -14,33 +14,38 @@ esac
 : This forces SH files to create target in same directory as SH file.
 : This is so that make depend always knows where to find SH derivatives.
 case "$0" in
-*/*) cd `expr X$0 : 'X\(.*\)/'` ;;
+*/Makefile.SH) cd `expr X$0 : 'X\(.*\)/'` ;;
+Makefile.SH) ;;
+*) case `pwd` in
+   */x2p) ;;
+   *) if test -d x2p; then cd x2p
+      else echo "Can't figure out where to write output."; exit 1
+         fi;;
+   esac;;
 esac
 
-: ${bin_sh=/bin/sh}
-
 echo "Extracting x2p/Makefile (with variable substitutions)"
 rm -f Makefile
 cat >Makefile <<!GROK!THIS!
-# $RCSfile: Makefile.SH,v $$Revision: 4.1 $$Date: 1996/07/05 23:49:56 $
+# $RCSfile: Makefile.SH,v $$Revision: 4.1 $$Date: 92/08/07 18:29:07 $
 #
 # $Log:        Makefile.SH,v $
-# Revision 1.2  1996/07/05 23:49:56  gerti
-# OPENSTEP 4.0 patches
-#
 
 CC = $cc
 BYACC = $byacc
 LDFLAGS = $ldflags
 SMALL = $small
 LARGE = $large $split
-MAB = $mab
 mallocsrc = $mallocsrc
 mallocobj = $mallocobj
 shellflags = $shellflags
 
 libs = $libs
 
+$make_set_make
+# grrr
+SHELL = $sh
+
 # These variables will be used in a future version to make
 # the make file more portable to non-unix systems.
 AR = $ar
@@ -53,9 +58,6 @@ FIRSTMAKEFILE = $firstmakefile
 
 .SUFFIXES: .c \$(OBJ_EXT)
 
-# grrr
-SHELL = $bin_sh
-
 !GROK!THIS!
 
 cat >>Makefile <<'!NO!SUBS!'
@@ -86,14 +88,15 @@ obj = hash$(OBJ_EXT) $(mallocobj) str$(OBJ_EXT) util$(OBJ_EXT) walk$(OBJ_EXT)
 
 lintflags = -phbvxac
 
+
 .c$(OBJ_EXT):
-       $(CCCMD) $(MAB) $*.c
+       $(CCCMD) -DPERL_FOR_X2P $*.c
 
 all: $(public) $(private) $(util)
        touch all
 
 a2p: $(obj) a2p$(OBJ_EXT)
-       $(CC) $(MAB) $(LDFLAGS) $(obj) a2p$(OBJ_EXT) $(libs) -o a2p
+       $(CC) $(LDFLAGS) $(obj) a2p$(OBJ_EXT) $(libs) -o a2p
 
 # I now supply a2p.c with the kits, so the following section is
 # used only if you force byacc to run by saying
@@ -110,7 +113,7 @@ a2p.c: a2p.y
        -@touch a2p.c
 
 a2p$(OBJ_EXT): a2p.c a2py.c a2p.h EXTERN.h util.h INTERN.h handy.h ../config.h str.h hash.h
-       $(CCCMD) $(LARGE) $(MAB) a2p.c
+       $(CCCMD) $(LARGE) a2p.c
 
 clean:
        rm -f a2p *$(OBJ_EXT)