File: strings.make

package info (click to toggle)
gnustep-make 2.6.2-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 3,084 kB
  • sloc: sh: 3,990; objc: 806; makefile: 229; perl: 71
file content (77 lines) | stat: -rw-r--r-- 2,494 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#   -*-makefile-*-
#   Shared/strings.make
#
#   Makefile fragment with rules to run make_strings
#
#   Copyright (C) 2002, 2010 Free Software Foundation, Inc.
#
#   Author:  Nicola Pero <nicola.pero@meta-innovation.com>
#
#   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 3
#   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.
#   If not, write to the Free Software Foundation,
#   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

#
# input variables:
#
# $(GNUSTEP_INSTANCE)_LANGUAGES: the list of languages (processed in rules.make,
#   and converted into LANGUAGES)
#
# $(GNUSTEP_INSTANCE)_STRINGS_FILES: the list of ObjC/C/.h files to
#   parse; if not set, it defaults to $(GNUSTEP_INSTANCE)_OBJC_FILES and
#   $(GNUSTEP_INSTANCE)_C_FILES and $(GNUSTEP_INSTANCE)_HEADER_FILES
#   (header files interpreted as relative paths to HEADER_FILES_DIR).
#
# $(GNUSTEP_INSTANCE)_MAKE_STRINGS_OPTIONS: the make_strings special
#   options; defaults to $(MAKE_STRINGS_OPTIONS) (which defaults to
#   nothing :-) if not set.
#
# public targets:
# 
# internal-$(GNUSTEP_TYPE)-strings
#

ifneq ($(strip $($(GNUSTEP_INSTANCE)_STRINGS_FILES)),)
 GNUSTEP_STRINGS_FILES = $(strip $($(GNUSTEP_INSTANCE)_STRINGS_FILES))
else

 GNUSTEP_STRINGS_FILES = $(strip \
  $($(GNUSTEP_INSTANCE)_OBJC_FILES) \
  $($(GNUSTEP_INSTANCE)_C_FILES) \
  $(addprefix $($(GNUSTEP_INSTANCE)_HEADER_FILES_DIR),$($(GNUSTEP_INSTANCE)_HEADER_FILES)))

endif

.PHONY: internal-$(GNUSTEP_TYPE)-strings

ifeq ($(GNUSTEP_STRINGS_FILES),)

internal-$(GNUSTEP_TYPE)-strings::
	$(ALWAYS_ECHO_NO_FILES)

else # we have some GNUSTEP_STRINGS_FILES

GNUSTEP_MAKE_STRINGS_OPTIONS = $(strip $($(GNUSTEP_INSTANCE)_MAKE_STRINGS_OPTIONS))
ifeq ($(GNUSTEP_MAKE_STRINGS_OPTIONS),)
  GNUSTEP_MAKE_STRINGS_OPTIONS = $(MAKE_STRINGS_OPTIONS)
endif

GNUSTEP_LANGUAGE_DIRS = $(foreach l, $(LANGUAGES), $(l).lproj)

$(GNUSTEP_LANGUAGE_DIRS):
	$(ECHO_CREATING)$(MKDIRS) $@$(END_ECHO)

internal-$(GNUSTEP_TYPE)-strings:: $(GNUSTEP_LANGUAGE_DIRS)
	$(ECHO_MAKING_STRINGS)make_strings $(GNUSTEP_MAKE_STRINGS_OPTIONS) \
	  -L "$(LANGUAGES)" \
	  $(GNUSTEP_STRINGS_FILES)$(END_ECHO)

endif # GNUSTEP_STRING_FILES = ''