Commit 0d478754 authored by Iustin Pop's avatar Iustin Pop
Browse files

Makefile: Switch from subshell to $(MAKE) -C

It seems that set -e does not affect subshell (only simple commands),
and thus we don't actually get failures from make check being run in a
subshell. Rather than trying to handle this better, we remove the
subshell and invoke make with the required subdirectory.
parent 71e635f3
......@@ -73,7 +73,9 @@ dist: regen-version Ganeti/HTools/Version.hs doc
gzip -v9 $$ANAME ; \
TMPDIR=$$(mktemp -d) ; \
tar xzf $$ANAME.gz -C $$TMPDIR; \
(cd $$TMPDIR/$$PFX; make; make clean; make check); \
$(MAKE) -C $$TMPDIR/$$PFX; \
$(MAKE) -C $$TMPDIR/$$PFX clean; \
$(MAKE) -C $$TMPDIR/$$PFX check; \
rm -rf $$TMPDIR ; \
tar tzvf $$ANAME.gz ; \
sha1sum $$ANAME.gz ; \
......
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