mirror of
https://github.com/gnustep/tools-make.git
synced 2025-04-22 22:00:49 +00:00
New file with code from the old top-level aggregate.make
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@12364 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
b9aaaf40df
commit
a80680e75b
1 changed files with 66 additions and 0 deletions
66
Master/aggregate.make
Normal file
66
Master/aggregate.make
Normal file
|
@ -0,0 +1,66 @@
|
|||
#
|
||||
# aggregate.make
|
||||
#
|
||||
# Master Makefile rules to build a set of GNUstep-base subprojects.
|
||||
#
|
||||
# Copyright (C) 1997 Free Software Foundation, Inc.
|
||||
#
|
||||
# Author: Scott Christley <scottc@net-community.com>
|
||||
# Author: Ovidiu Predescu <ovidiu@net-community.com>
|
||||
#
|
||||
# This file is part of the GNUstep Makefile Package.
|
||||
#
|
||||
# This library is free software; you can redistribute it and/or
|
||||
# modify it under the terms of the GNU General Public License
|
||||
# as published by the Free Software Foundation; either version 2
|
||||
# of the License, or (at your option) any later version.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public
|
||||
# License along with this library; see the file COPYING.LIB.
|
||||
# If not, write to the Free Software Foundation,
|
||||
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
|
||||
# prevent multiple inclusions
|
||||
ifeq ($(MASTER_AGGREGATE_MAKE_LOADED),)
|
||||
MASTER_AGGREGATE_MAKE_LOADED=yes
|
||||
|
||||
#
|
||||
# Include in the common makefile rules
|
||||
#
|
||||
ifeq ($(RULES_MAKE_LOADED),)
|
||||
include $(GNUSTEP_MAKEFILES)/rules.make
|
||||
endif
|
||||
|
||||
#
|
||||
# The list of directory names with the subprojects is in the makefile
|
||||
# variable SUBPROJECTS
|
||||
#
|
||||
SUBPROJECTS:=$(strip $(SUBPROJECTS))
|
||||
|
||||
#
|
||||
# Internal targets
|
||||
#
|
||||
internal-all internal-install internal-uninstall internal-clean \
|
||||
internal-distclean internal-check::
|
||||
@ target=$(subst internal-,,$@); \
|
||||
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 \
|
||||
GNUSTEP_INSTALLATION_DIR="$(GNUSTEP_INSTALLATION_DIR)" \
|
||||
$$target; then \
|
||||
:; else exit $$?; \
|
||||
fi; \
|
||||
fi; \
|
||||
done
|
||||
|
||||
endif # Master/aggregate.make loaded
|
||||
|
||||
## Local variables:
|
||||
## mode: makefile
|
||||
## End:
|
Loading…
Reference in a new issue