echo "Extracting x2p/Makefile (with variable substitutions)"
rm -f Makefile
+
+# The .PL extractions use the Cwd extension. For statically-built
+# perls, we need perl, not just miniperl.
+case "$usedl" in
+ define) perl="../miniperl" ;;
+ *) perl="../perl" ;;
+esac
+
cat >Makefile <<!GROK!THIS!
# $RCSfile: Makefile.SH,v $$Revision: 4.1 $$Date: 92/08/07 18:29:07 $
#
# These variables may need to be manually set for non-Unix systems.
AR = $ar
-EXE_EXT = $_ext
+EXE_EXT = $_exe
LIB_EXT = $_a
OBJ_EXT = $_o
PATH_SEP = $p_
.SUFFIXES: .c \$(OBJ_EXT)
+RUN = $run
+PERL = $perl
+
!GROK!THIS!
cat >>Makefile <<'!NO!SUBS!'
-e 's/^yynewerror://' \
-e 's/^ goto yynewerror;//' \
-e 's|^static char yysccsid\(.*\)|/* static char yysccsid\1 */|' \
+ -e 's/^\(char \*yyname\[\]\)/const \1/' \
+ -e 's/^\(char \*yyrule\[\]\)/const \1/' \
+ -e 's/^\( register\) \(char \*yys;\)/\1 const \2/' \
< y.tab.c > a2p.c
FORCE:
clean:
rm -f a2p$(EXE_EXT) psed *$(OBJ_EXT) $(plexe) $(plc) $(plm)
+distclean: veryclean
+
realclean: clean
-rmdir .depending
rm -f core $(addedbyconf) all malloc.c
shlist:
echo $(sh) | tr ' ' $(TRNL) >.shlist
-# These should be automatically generated
-
$(plextract):
- ../miniperl -I../lib $@.PL
+ $(RUN) $(PERL) -I../lib $@.PL
find2perl: find2perl.PL