tools-make/Master/aggregate.make
Nicola Pero 09e9167fd3 Tidied line
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@12579 72102866-910b-0410-8b05-ffd578937521
2002-02-20 13:08:27 +00:00

57 lines
1.7 KiB
Makefile

#
# 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.
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
## Local variables:
## mode: makefile
## End: