mirror of
https://github.com/gnustep/tools-make.git
synced 2025-04-23 14:20:50 +00:00
Fixed to work with empty SUBPROJECT variable as well
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@8641 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
62a5a7a52b
commit
c9001cfcd5
1 changed files with 11 additions and 9 deletions
|
@ -41,15 +41,17 @@ SUBPROJECTS:=$(strip $(SUBPROJECTS))
|
|||
internal-all internal-install internal-uninstall internal-clean \
|
||||
internal-distclean internal-check::
|
||||
@target=`echo $@ | sed 's/internal-//'`; \
|
||||
for f in $(SUBPROJECTS); do \
|
||||
echo Making $$target in $$f...; \
|
||||
mf=$(MAKEFILE_NAME); \
|
||||
if [ ! -f $$f/$$mf -a -f $$f/Makefile ]; then \
|
||||
mf=Makefile; \
|
||||
echo "WARNING: No $(MAKEFILE_NAME) found for subproject $$f; using 'Makefile'"; \
|
||||
fi; \
|
||||
if $(MAKE) -C $$f -f $$mf --no-keep-going $$target; then \
|
||||
:; else exit $$?; \
|
||||
for f in $(SUBPROJECTS) __done; do \
|
||||
if [ $$f != __done ]; then \
|
||||
echo Making $$target in $$f...; \
|
||||
mf=$(MAKEFILE_NAME); \
|
||||
if [ ! -f "$$f/$$mf" -a -f "$$f/Makefile" ]; then \
|
||||
mf=Makefile; \
|
||||
echo "WARNING: No $(MAKEFILE_NAME) found for subproject $$f; using 'Makefile'"; \
|
||||
fi; \
|
||||
if $(MAKE) -C $$f -f $$mf --no-keep-going $$target; then \
|
||||
:; else exit $$?; \
|
||||
fi; \
|
||||
fi; \
|
||||
done
|
||||
|
||||
|
|
Loading…
Reference in a new issue