1# -*-makefile-*- 2# Master/ctool.make 3# 4# Master Makefile rules to build GNUstep-based command line ctools. 5# 6# Copyright (C) 1997, 2001 Free Software Foundation, Inc. 7# 8# Author: Scott Christley <scottc@net-community.com> 9# Author: Nicola Pero <nicola@brainstorm.co.uk> 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 27CTOOL_NAME := $(strip $(CTOOL_NAME)) 28 29ifeq ($(GNUSTEP_MAKE_PARALLEL_BUILDING), no) 30 31internal-all:: $(GNUSTEP_OBJ_DIR) $(CTOOL_NAME:=.all.ctool.variables) 32 33else 34 35internal-all:: $(GNUSTEP_OBJ_DIR) 36 $(ECHO_NOTHING_RECURSIVE_MAKE)$(MAKE) -f $(MAKEFILE_NAME) --no-print-directory --no-keep-going \ 37 internal-master-ctool-all \ 38 GNUSTEP_BUILD_DIR="$(GNUSTEP_BUILD_DIR)" \ 39 _GNUSTEP_MAKE_PARALLEL=yes$(END_ECHO_RECURSIVE_MAKE) 40 41.PHONY: internal-master-ctool-all 42 43internal-master-ctool-all: $(CTOOL_NAME:=.all.ctool.variables) 44 45endif 46 47internal-install:: $(CTOOL_NAME:=.install.ctool.variables) 48 49internal-uninstall:: $(CTOOL_NAME:=.uninstall.ctool.variables) 50 51internal-clean:: 52 53internal-distclean:: 54 55CTOOLS_WITH_SUBPROJECTS = $(strip $(foreach ctool,$(CTOOL_NAME),$(patsubst %,$(ctool),$($(ctool)_SUBPROJECTS)))) 56ifneq ($(CTOOLS_WITH_SUBPROJECTS),) 57internal-clean:: $(CTOOLS_WITH_SUBPROJECTS:=.clean.ctool.subprojects) 58internal-distclean:: $(CTOOLS_WITH_SUBPROJECTS:=.distclean.ctool.subprojects) 59endif 60 61internal-strings:: $(CTOOL_NAME:=.strings.ctool.variables) 62 63$(CTOOL_NAME): $(GNUSTEP_OBJ_DIR) 64 $(ECHO_NOTHING_RECURSIVE_MAKE)$(MAKE) -f $(MAKEFILE_NAME) --no-print-directory $@.all.ctool.variables$(END_ECHO_RECURSIVE_MAKE) 65