2002-02-27 16:35:07 +00:00
|
|
|
#
|
|
|
|
# Master/palette.make
|
|
|
|
#
|
|
|
|
# Master Makefile rules to build GNUstep-based palettes.
|
|
|
|
#
|
|
|
|
# Copyright (C) 1999 Free Software Foundation, Inc.
|
|
|
|
#
|
|
|
|
# Author: Scott Christley <scottc@net-community.com>
|
|
|
|
# Author: Ovidiu Predescu <ovidiu@net-community.com>
|
|
|
|
# Author: Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
|
|
|
# Author: Nicola Pero <nicola@brainstorm.co.uk>
|
|
|
|
#
|
|
|
|
# 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,
|
2005-05-22 03:20:14 +00:00
|
|
|
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2002-02-27 16:35:07 +00:00
|
|
|
|
|
|
|
ifeq ($(RULES_MAKE_LOADED),)
|
|
|
|
include $(GNUSTEP_MAKEFILES)/rules.make
|
|
|
|
endif
|
|
|
|
|
|
|
|
PALETTE_NAME:=$(strip $(PALETTE_NAME))
|
|
|
|
|
|
|
|
internal-all:: $(PALETTE_NAME:=.all.palette.variables)
|
|
|
|
|
|
|
|
internal-install:: $(PALETTE_NAME:=.install.palette.variables)
|
|
|
|
|
|
|
|
internal-uninstall:: $(PALETTE_NAME:=.uninstall.palette.variables)
|
|
|
|
|
|
|
|
_PSWRAP_C_FILES = $(foreach palette,$(PALETTE_NAME),$($(palette)_PSWRAP_FILES:.psw=.c))
|
|
|
|
_PSWRAP_H_FILES = $(foreach palette,$(PALETTE_NAME),$($(palette)_PSWRAP_FILES:.psw=.h))
|
|
|
|
|
2002-10-16 03:30:58 +00:00
|
|
|
internal-clean::
|
2003-10-13 10:35:24 +00:00
|
|
|
ifeq ($(GNUSTEP_FLATTENED),)
|
2003-10-13 23:24:25 +00:00
|
|
|
(cd $(GNUSTEP_BUILD_DIR); \
|
2006-09-13 04:01:28 +00:00
|
|
|
rm -rf $(_PSWRAP_C_FILES) $(_PSWRAP_H_FILES) *.palette/$(GNUSTEP_TARGET_LDIR))
|
2003-10-13 10:35:24 +00:00
|
|
|
else
|
2003-10-13 23:24:25 +00:00
|
|
|
(cd $(GNUSTEP_BUILD_DIR); \
|
2006-09-13 04:01:28 +00:00
|
|
|
rm -rf $(_PSWRAP_C_FILES) $(_PSWRAP_H_FILES) *.palette)
|
2003-10-13 10:35:24 +00:00
|
|
|
endif
|
2002-02-27 16:35:07 +00:00
|
|
|
|
2003-10-13 10:35:24 +00:00
|
|
|
internal-distclean::
|
2006-09-13 04:01:28 +00:00
|
|
|
ifeq ($(GNUSTEP_FLATTENED),)
|
|
|
|
(cd $(GNUSTEP_BUILD_DIR); rm -rf *.palette)
|
|
|
|
endif
|
2002-02-27 16:35:07 +00:00
|
|
|
|
2002-10-16 03:30:58 +00:00
|
|
|
PALETTES_WITH_SUBPROJECTS = $(strip $(foreach palette,$(PALETTE_NAME),$(patsubst %,$(palette),$($(palette)_SUBPROJECTS))))
|
|
|
|
ifneq ($(PALETTES_WITH_SUBPROJECTS),)
|
|
|
|
internal-clean:: $(PALETTES_WITH_SUBPROJECTS:=.clean.palette.subprojects)
|
|
|
|
endif
|
|
|
|
|
2002-10-22 00:36:00 +00:00
|
|
|
internal-strings:: $(PALETTE_NAME:=.strings.palette.variables)
|
|
|
|
|
2002-02-27 16:35:07 +00:00
|
|
|
$(PALETTE_NAME):
|
|
|
|
@$(MAKE) -f $(MAKEFILE_NAME) --no-print-directory \
|
|
|
|
$@.all.palette.variables
|