Commit b0b8458a authored by Iustin Pop's avatar Iustin Pop
Browse files

Correctly do sub-$(MAKE) invocations

Reading the automake documentation, it seems that explicit calls to
$(MAKE) need $(AM_MAKEFLAGS) passed, so let's do that.
Signed-off-by: default avatarIustin Pop <>
Reviewed-by: default avatarRené Nussbaumer <>
parent 7fe73c6f
......@@ -566,13 +566,13 @@ htools/ htools/hpc-htools
# run before)
.PHONY: hs-prof hs-prof-quick
$(MAKE) clean
$(MAKE) $(HS_ALL_PROGS) HEXTRA="-osuf .o"
rm -f $(HS_ALL_PROGS)
$(MAKE) hs-prof-quick
$(MAKE) $(AM_MAKEFLAGS) hs-prof-quick
$(MAKE) $(HS_ALL_PROGS) HEXTRA="-osuf .prof_o -prof -auto-all"
$(MAKE) $(AM_MAKEFLAGS) $(HS_ALL_PROGS) HEXTRA="-osuf .prof_o -prof -auto-all"
dist_sbin_SCRIPTS = \
......@@ -1066,8 +1066,8 @@ regen-vcs-version:
set -e; \
cd $(srcdir); \
if test -d .git; then \
$(MAKE) clean-vcs-version; \
$(MAKE) vcs-version; \
$(MAKE) $(AM_MAKEFLAGS) clean-vcs-version; \
$(MAKE) $(AM_MAKEFLAGS) vcs-version; \
htools/Ganeti/HTools/Version.hs: htools/Ganeti/HTools/ vcs-version
......@@ -1367,7 +1367,7 @@ hlint: $(HS_BUILT_SRCS) htools/lint-hints.hs
# a dist hook rule for updating the vcs-version file; this is
# hardcoded due to where it needs to build the file...
$(MAKE) regen-vcs-version
$(MAKE) $(AM_MAKEFLAGS) regen-vcs-version
rm -f $(top_distdir)/vcs-version
cp -p $(srcdir)/vcs-version $(top_distdir)
......@@ -1496,7 +1496,7 @@ py-coverage: $(BUILT_SOURCES) $(python_tests)
.PHONY: hs-coverage
hs-coverage: $(haskell_tests) htools/hpc-htools
rm -f *.tix
$(MAKE) hs-check
$(MAKE) $(AM_MAKEFLAGS) hs-check
@mkdir_p@ $(COVERAGE_HS_DIR)
hpc combine --union $(HPCEXCL) \
test.tix hpc-htools.tix > coverage-htools.tix
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment