tools-make/aggregate.make

62 lines
1.7 KiB
Text
Raw Permalink Normal View History

#
# aggregate.make
#
# 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 ($(AGGREGATE_MAKE_LOADED),)
AGGREGATE_MAKE_LOADED=yes
#
# Include in the common makefile rules
#
include $(GNUSTEP_MAKEFILES)/rules.make
#
# The list of directory names with the subprojects
# are in the makefile variable SUBPROJECTS
#
SUBPROJECTS:=$(strip $(SUBPROJECTS))
#
# Internal targets
#
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 $$?; \
fi; \
done
endif
# aggregate.make loaded
## Local variables:
## mode: makefile
## End: