summaryrefslogtreecommitdiff
path: root/Cross/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Cross/Makefile')
-rw-r--r--Cross/Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/Cross/Makefile b/Cross/Makefile
index 4e93f98644..da9ce10693 100644
--- a/Cross/Makefile
+++ b/Cross/Makefile
@@ -1,8 +1,8 @@
## Toplevel Makefile for cross-compilation of perl
#
-## $Id: Makefile,v 1.4 2003/09/05 00:48:19 red Exp red $
+## $Id: Makefile,v 1.5 2003/12/12 00:48:19 red Exp red $
-export TOPDIR?=${shell pwd}
+export TOPDIR=${shell pwd}
include $(TOPDIR)/config
export CFLAGS
export SYS=$(ARCH)-$(OS)
@@ -39,9 +39,11 @@ gen_patch:
diff -Bbur ../installperl installperl > installperl.patch
patch:
- cd .. ; patch -p1 < Cross/Makefile.SH.patch
- cd .. ; patch -p1 < Cross/installperl.patch ; mv installperl installperl-patched
- cd .. ; sed -e 's/XXSTRIPXX/$(SYS)/' installperl-patched > installperl
+ cd .. ; if [ ! -e ./CROSS_PATCHED ] ; then \
+ patch -p1 < Cross/Makefile.SH.patch; \
+ patch -p1 < Cross/installperl.patch ; mv installperl installperl-patched; \
+ sed -e 's/XXSTRIPXX/$(SYS)/' installperl-patched > installperl; \
+ touch CROSS_PATCHED ; fi
perl:
@echo Perl cross-build directory is $(TOPDIR)