mirror of
https://github.com/gnustep/tools-make.git
synced 2025-04-22 13:50:47 +00:00
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/branches/stable@25563 72102866-910b-0410-8b05-ffd578937521
79 lines
2.3 KiB
Makefile
79 lines
2.3 KiB
Makefile
#
|
|
# Shared/strings.make
|
|
#
|
|
# Makefile fragment with rules to run make_strings
|
|
#
|
|
# Copyright (C) 2002 Free Software Foundation, Inc.
|
|
#
|
|
# 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 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
|
|
#
|
|
# $(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)),)
|
|
Str_STRINGS_FILES = $($(GNUSTEP_INSTANCE)_STRINGS_FILES)
|
|
else
|
|
|
|
Str1_STRINGS_FILES = \
|
|
$($(GNUSTEP_INSTANCE)_OBJC_FILES) \
|
|
$($(GNUSTEP_INSTANCE)_C_FILES) \
|
|
$(addprefix $($(GNUSTEP_INSTANCE)_HEADER_FILES_DIR),$($(GNUSTEP_INSTANCE)_HEADER_FILES))
|
|
|
|
Str_STRINGS_FILES = $(strip $(Str1_STRINGS_FILES))
|
|
|
|
endif
|
|
|
|
.PHONY: internal-$(GNUSTEP_TYPE)-strings
|
|
|
|
ifeq ($(Str_STRINGS_FILES),)
|
|
|
|
internal-$(GNUSTEP_TYPE)-strings::
|
|
$(ALWAYS_ECHO_NO_FILES)
|
|
|
|
else # we have some STRINGS_FILES
|
|
|
|
Str_LANGUAGES = $(strip $($(GNUSTEP_INSTANCE)_LANGUAGES))
|
|
|
|
Str_MAKE_STRINGS_OPTIONS = $(strip $($(GNUSTEP_INSTANCE)_MAKE_STRINGS_OPTIONS))
|
|
ifeq ($(Str_MAKE_STRINGS_OPTIONS),)
|
|
Str_MAKE_STRINGS_OPTIONS = $(MAKE_STRINGS_OPTIONS)
|
|
endif
|
|
|
|
internal-$(GNUSTEP_TYPE)-strings::
|
|
ifeq ($(Str_LANGUAGES),)
|
|
$(ALWAYS_ECHO_NO_LANGUAGES)
|
|
else
|
|
$(ECHO_MAKING_STRINGS)make_strings $(Str_MAKE_STRINGS_OPTIONS) \
|
|
-L "$(Str_LANGUAGES)" \
|
|
$(Str_STRINGS_FILES)$(END_ECHO)
|
|
endif
|
|
|
|
endif # Str_STRING_FILES = ''
|