mirror of
https://github.com/gnustep/tools-make.git
synced 2025-04-22 22:00:49 +00:00
Pass GNUSTEP_BUILD_DIR to submake invocations
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@17855 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
08e27fc9b4
commit
aac2a25bb2
1 changed files with 8 additions and 1 deletions
|
@ -58,6 +58,7 @@ ifneq ($(SUBPROJECTS),)
|
|||
internal-all internal-install internal-uninstall internal-clean \
|
||||
internal-distclean internal-check internal-strings::
|
||||
@ operation=$(subst internal-,,$@); \
|
||||
abs_build_dir="$(ABS_GNUSTEP_BUILD_DIR)"; \
|
||||
for f in $(SUBPROJECTS); do \
|
||||
echo "Making $$operation in $$f..."; \
|
||||
mf=$(MAKEFILE_NAME); \
|
||||
|
@ -65,7 +66,13 @@ internal-all internal-install internal-uninstall internal-clean \
|
|||
mf=Makefile; \
|
||||
echo "WARNING: No $(MAKEFILE_NAME) found for aggregate project $$f; using 'Makefile'"; \
|
||||
fi; \
|
||||
if $(MAKE) -C $$f -f $$mf --no-keep-going $$operation; then \
|
||||
if [ "$${abs_build_dir}" = "." ]; then \
|
||||
gsbuild="."; \
|
||||
else \
|
||||
gsbuild="$${abs_build_dir}/$$f"; \
|
||||
fi; \
|
||||
if $(MAKE) -C $$f -f $$mf --no-keep-going $$operation \
|
||||
GNUSTEP_BUILD_DIR="$$gsbuild"; then \
|
||||
:; else exit $$?; \
|
||||
fi; \
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue