summaryrefslogtreecommitdiff
path: root/Makefile.top
diff options
context:
space:
mode:
authorMatúš Kukan <matus.kukan@gmail.com>2012-08-16 18:25:16 +0200
committerMatúš Kukan <matus.kukan@gmail.com>2012-08-16 19:29:03 +0200
commitaf69e72e1d6c04e23f17c4d1e58aa891b95611ee (patch)
tree8975b218f6f754f1313c01d57fa0329377caeda1 /Makefile.top
parent4054dd8fc407f7766710beaac575b20a809a912c (diff)
avoid defining gb_TAILBUILDMODULES, use the command only when necessary
This enables to properly use make <module>.all for builds without dictionaries and hopefully also solves the problem behind 5133d3c48fd6d2a795e42b87a1e7b464946606a3 Change-Id: I43872864aa135014ea51d15b34ef4de151f14c3d
Diffstat (limited to 'Makefile.top')
-rw-r--r--Makefile.top20
1 files changed, 7 insertions, 13 deletions
diff --git a/Makefile.top b/Makefile.top
index b23b5be1a0dd..d08cd5ed4d7e 100644
--- a/Makefile.top
+++ b/Makefile.top
@@ -247,10 +247,6 @@ xpdf\
xsltml\
zlib\
-ifneq ($(wildcard dictionaries/Module_dictionaries.mk),)
-gb_TAILBUILDMODULES := $(shell $(GNUMAKE) -r -f $(SRCDIR)/tail_build/Makefile showmodules)
-endif
-
export gb_TAILBUILDTARGET=all slowcheck
define gbuild_module_rules
@@ -259,16 +255,14 @@ define gbuild_module_rules
$(1): bootstrap fetch
cd $(1) && $(GNUMAKE) -j $(GMAKE_PARALLELISM) $(GMAKE_OPTIONS) gb_PARTIALBUILD=T
-ifeq ($(filter $(1),$(gb_TAILBUILDMODULES)),)
-$(1).all: bootstrap fetch
- cd $(1) && unset MAKEFLAGS && \
- $(SOLARENV)/bin/build.pl -P$(BUILD_NCPUS) --all -- -P$(GMAKE_PARALLELISM)
-else
$(1).all: bootstrap fetch
- cd tail_build && unset MAKEFLAGS && \
- export gb_TAILBUILDTARGET="$(WORKDIR)/Module/$(1) $(WORKDIR)/Module/check/$(1) $(WORKDIR)/Module/slowcheck/$(1)" && \
- $(SOLARENV)/bin/build.pl -P$(BUILD_NCPUS) --all -- -P$(GMAKE_PARALLELISM)
-endif
+ $$(if $$(filter $(1),$$(shell $(GNUMAKE) -r -f $(SRCDIR)/tail_build/Makefile showmodules)), \
+ cd tail_build && unset MAKEFLAGS && \
+ export gb_TAILBUILDTARGET="$(WORKDIR)/Module/$(1) $(WORKDIR)/Module/check/$(1) $(WORKDIR)/Module/slowcheck/$(1)" && \
+ , \
+ cd $(1) && unset MAKEFLAGS && \
+ ) \
+ $(SOLARENV)/bin/build.pl -P$(BUILD_NCPUS) --all -- -P$(GMAKE_PARALLELISM)
$(1).clean:
cd $(1) && $(GNUMAKE) -j $(GMAKE_PARALLELISM) $(GMAKE_OPTIONS) clean gb_PARTIALBUILD=T