]> err.no Git - sope/blob - gnustep-make/Master/palette.make
fixed inline compilation
[sope] / gnustep-make / Master / palette.make
1 #
2 #   Master/palette.make
3 #
4 #   Master Makefile rules to build GNUstep-based palettes.
5 #
6 #   Copyright (C) 1999 Free Software Foundation, Inc.
7 #
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>
12 #
13 #   This file is part of the GNUstep Makefile Package.
14 #
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.
19 #   
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.
24
25 ifeq ($(RULES_MAKE_LOADED),)
26 include $(GNUSTEP_MAKEFILES)/rules.make
27 endif
28
29 PALETTE_NAME:=$(strip $(PALETTE_NAME))
30
31 internal-all:: $(PALETTE_NAME:=.all.palette.variables)
32
33 internal-install:: $(PALETTE_NAME:=.install.palette.variables)
34
35 internal-uninstall:: $(PALETTE_NAME:=.uninstall.palette.variables)
36
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))
39
40 internal-clean::
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))
45 else
46         (cd $(GNUSTEP_BUILD_DIR); \
47         rm -rf $(GNUSTEP_OBJ_DIR_NAME) $(_PSWRAP_C_FILES) $(_PSWRAP_H_FILES) \
48           *.palette)
49 endif
50
51 internal-distclean::
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)
56
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)
60 endif
61
62 internal-strings:: $(PALETTE_NAME:=.strings.palette.variables)
63
64 $(PALETTE_NAME):
65         @$(MAKE) -f $(MAKEFILE_NAME) --no-print-directory \
66                 $@.all.palette.variables