summaryrefslogtreecommitdiff
path: root/Makefile.SH
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2013-05-15 13:01:22 +0200
committerNicholas Clark <nick@ccl4.org>2013-05-20 21:50:45 +0200
commit417de989d3cb17f83d8a6af00ff4b171a8682c8c (patch)
treebed79ef797eff07faa2e99bf2d5527f6411f9c7c /Makefile.SH
parent2fea0471858664126bb4c23b75f6bf15c262cd8b (diff)
downloadperl-417de989d3cb17f83d8a6af00ff4b171a8682c8c.tar.gz
Defer running makedepend in x2p/ until it's needed.
We can run makedepend in x2p/ as part of the regular build process, which means that it can run as part of a parallel make. This gets a slight speedup (0.2s on this system), and increases flexibility on how x2p/Makefile is generated.
Diffstat (limited to 'Makefile.SH')
-rwxr-xr-xMakefile.SH4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile.SH b/Makefile.SH
index be624e3220..720075e391 100755
--- a/Makefile.SH
+++ b/Makefile.SH
@@ -601,6 +601,9 @@ definedefine)
esac
$spitshell >>$Makefile <<!GROK!THIS!
+x2p/$firstmakefile: makedepend
+ cd x2p; \$(MAKE) depend
+
translators: $x2p_deps
@echo " "; echo " Making x2p stuff"; cd x2p; \$(LDLIBPTH) \$(MAKE) all
@@ -1396,7 +1399,6 @@ config.h: config_h.SH config.sh
.PHONY: depend
depend: makedepend
sh ./makedepend MAKE=$(MAKE)
- cd x2p; $(MAKE) depend
# Cannot postpone this until $firstmakefile is ready ;-)
makedepend: makedepend.SH config.sh