4 # Master Makefile rules to build GNUstep-based palettes.
6 # Copyright (C) 1999 Free Software Foundation, Inc.
8 # Author: Scott Christley <scottc@net-community.com>
9 # Author: Ovidiu Predescu <ovidiu@net-community.com>
10 # Author: Richard Frith-Macdonald <richard@brainstorm.co.uk>
11 # Author: Nicola Pero <nicola@brainstorm.co.uk>
13 # This file is part of the GNUstep Makefile Package.
15 # This library is free software; you can redistribute it and/or
16 # modify it under the terms of the GNU General Public License
17 # as published by the Free Software Foundation; either version 2
18 # of the License, or (at your option) any later version.
20 # You should have received a copy of the GNU General Public
21 # License along with this library; see the file COPYING.LIB.
22 # If not, write to the Free Software Foundation,
23 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
25 ifeq ($(RULES_MAKE_LOADED),)
26 include $(GNUSTEP_MAKEFILES)/rules.make
29 PALETTE_NAME:=$(strip $(PALETTE_NAME))
31 internal-all:: $(PALETTE_NAME:=.all.palette.variables)
33 internal-install:: $(PALETTE_NAME:=.install.palette.variables)
35 internal-uninstall:: $(PALETTE_NAME:=.uninstall.palette.variables)
37 _PSWRAP_C_FILES = $(foreach palette,$(PALETTE_NAME),$($(palette)_PSWRAP_FILES:.psw=.c))
38 _PSWRAP_H_FILES = $(foreach palette,$(PALETTE_NAME),$($(palette)_PSWRAP_FILES:.psw=.h))
41 ifeq ($(GNUSTEP_FLATTENED),)
42 (cd $(GNUSTEP_BUILD_DIR); \
43 rm -rf $(GNUSTEP_OBJ_DIR_NAME) $(_PSWRAP_C_FILES) $(_PSWRAP_H_FILES) \
44 *.palette/$(GNUSTEP_TARGET_LDIR))
46 (cd $(GNUSTEP_BUILD_DIR); \
47 rm -rf $(GNUSTEP_OBJ_DIR_NAME) $(_PSWRAP_C_FILES) $(_PSWRAP_H_FILES) \
52 (cd $(GNUSTEP_BUILD_DIR); \
53 rm -rf shared_obj static_obj shared_debug_obj shared_profile_obj \
54 static_debug_obj static_profile_obj shared_profile_debug_obj \
55 static_profile_debug_obj *.palette)
57 PALETTES_WITH_SUBPROJECTS = $(strip $(foreach palette,$(PALETTE_NAME),$(patsubst %,$(palette),$($(palette)_SUBPROJECTS))))
58 ifneq ($(PALETTES_WITH_SUBPROJECTS),)
59 internal-clean:: $(PALETTES_WITH_SUBPROJECTS:=.clean.palette.subprojects)
62 internal-strings:: $(PALETTE_NAME:=.strings.palette.variables)
65 @$(MAKE) -f $(MAKEFILE_NAME) --no-print-directory \
66 $@.all.palette.variables