summaryrefslogtreecommitdiff
path: root/Makefile.SH
diff options
context:
space:
mode:
authorJos I. Boumans <kane@dwim.org>2006-12-15 21:51:45 +0100
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2006-12-19 15:07:45 +0000
commit687d3573c7533b89705e64f529b53c631cb9dec0 (patch)
treed9ec7bf7b365d8ca462debe7fc0ba81fb2086556 /Makefile.SH
parent2ae48df0f018213e8336ab227bb84aba249da141 (diff)
downloadperl-687d3573c7533b89705e64f529b53c631cb9dec0.tar.gz
Making adding binary files possible
From: "Jos Boumans" <kane@dwim.org> Message-ID: <19978.80.127.35.68.1166212305.squirrel@webmail.xs4all.nl> with a few tweaks p4raw-id: //depot/perl@29593
Diffstat (limited to 'Makefile.SH')
-rw-r--r--Makefile.SH17
1 files changed, 12 insertions, 5 deletions
diff --git a/Makefile.SH b/Makefile.SH
index 1fb7a9508c..bba2e1bf60 100644
--- a/Makefile.SH
+++ b/Makefile.SH
@@ -1023,18 +1023,19 @@ printconfig:
.PHONY: clean _tidy _mopup _cleaner1 _cleaner2 \
realclean _realcleaner clobber _clobber \
- distclean veryclean _verycleaner
+ distclean veryclean _verycleaner \
+ cleanup_unpacked_files unpack_files
-clean: _tidy _mopup
+clean: cleanup_unpacked_files _tidy _mopup
-realclean: _realcleaner _mopup
+realclean: cleanup_unpacked_files _realcleaner _mopup
@echo "Note that '$(MAKE) realclean' does not delete config.sh or Policy.sh"
_clobber:
-@rm -f Cross/run-* Cross/to-* Cross/from-*
rm -f config.sh cppstdin Policy.sh extras.lst
-clobber: _realcleaner _mopup _clobber
+clobber: cleanup_unpacked_files _realcleaner _mopup _clobber
distclean: clobber
@@ -1157,7 +1158,7 @@ makedepend: makedepend.SH config.sh
TESTFILE=TEST
-_test_prep:
+_test_prep: unpack_files
cd t && (rm -f $(PERL)$(EXE_EXT); $(LNS) ../$(PERL)$(EXE_EXT) $(PERL)$(EXE_EXT))
# Architecture-neutral stuff:
@@ -1173,6 +1174,12 @@ _test_tty:
_test_notty:
cd t && $(PERL_DEBUG) PERL_SKIP_TTY_TEST=1 $(LDLIBPTH) $(PERL) $(TESTFILE) $(TEST_ARGS)
+unpack_files:
+ $(LDLIBPTH) ./miniperl$(EXE_EXT) -Ilib packed_files.pl -u
+
+cleanup_unpacked_files:
+ $(LDLIBPTH) ./miniperl$(EXE_EXT) -Ilib packed_files.pl -c
+
# The second branch is for testing without a tty or controlling terminal,
# see t/op/stat.t
_test: