1# -*-makefile-*- 2# Master/framework.make 3# 4# Master Makefile rules to build GNUstep-based frameworks. 5# 6# Copyright (C) 2000, 2001 Free Software Foundation, Inc. 7# 8# Author: Mirko Viviani <mirko.viviani@rccr.cremona.it> 9# Author: Nicola Pero <n.pero@mi.flashnet.it> 10# 11# This file is part of the GNUstep Makefile Package. 12# 13# This library is free software; you can redistribute it and/or 14# modify it under the terms of the GNU General Public License 15# as published by the Free Software Foundation; either version 3 16# of the License, or (at your option) any later version. 17# 18# You should have received a copy of the GNU General Public 19# License along with this library; see the file COPYING. 20# If not, write to the Free Software Foundation, 21# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 22 23ifeq ($(RULES_MAKE_LOADED),) 24include $(GNUSTEP_MAKEFILES)/rules.make 25endif 26 27FRAMEWORK_NAME := $(strip $(FRAMEWORK_NAME)) 28 29before-build-headers:: 30 31after-build-headers:: 32 33# A framework has a special task to do before all, which is to build 34# the public framework headers. 35build-headers:: before-build-headers $(FRAMEWORK_NAME:=.build-headers.framework.variables) after-build-headers 36 37before-all:: build-headers 38 39# TODO: Parallel building 40internal-all:: $(GNUSTEP_OBJ_DIR) $(FRAMEWORK_NAME:=.all.framework.variables) 41 42$(FRAMEWORK_NAME:=.all.framework.variables): $(FRAMEWORK_NAME:=.build-headers.framework.variables) 43 44internal-check:: $(FRAMEWORK_NAME:=.check.framework.variables) 45 46internal-install:: $(FRAMEWORK_NAME:=.install.framework.variables) 47 48internal-uninstall:: $(FRAMEWORK_NAME:=.uninstall.framework.variables) 49 50internal-clean:: $(FRAMEWORK_NAME:=.clean.framework.variables) 51 52internal-distclean:: $(FRAMEWORK_NAME:=.distclean.framework.variables) 53 54internal-strings:: $(FRAMEWORK_NAME:=.strings.framework.variables) 55 56$(FRAMEWORK_NAME): $(GNUSTEP_OBJ_DIR) 57 $(ECHO_NOTHING_RECURSIVE_MAKE)$(MAKE) -f $(MAKEFILE_NAME) --no-print-directory --no-keep-going $@.all.framework.variables$(END_ECHO_RECURSIVE_MAKE) 58