mirror of
https://github.com/gnustep/tools-make.git
synced 2025-04-23 22:33:28 +00:00
Filter out #pragma from preprocessor output when preprocessing .cplist files
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@17376 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
e28081ed41
commit
cd546e47d1
2 changed files with 11 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Mon Jul 28 10:59:21 2003 Nicola Pero <n.pero@mi.flashnet.it>
|
||||
|
||||
* rules.make (%.plist): Filter the result through sed to drop #pragma
|
||||
statements.
|
||||
|
||||
2003-07-23 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Instance/Documentation/autogsdoc.make: put stamp file in
|
||||
|
|
|
@ -437,10 +437,15 @@ $(GNUSTEP_OBJ_DIR)/%${OEXT} : %.cp
|
|||
# a single xxxInfo.cplist file, and xxxInfo.plist will automatically
|
||||
# be generated by gnustep-make from xxxInfo.cplist by running the
|
||||
# preprocessor.
|
||||
#
|
||||
# Unfortunately, on some platforms (Apple) the preprocessor emits
|
||||
# unwanted and unrequested #pragma statements. We use sed to filter
|
||||
# them out.
|
||||
#
|
||||
%.plist : %.cplist
|
||||
$(ECHO_PREPROCESSING)$(CPP) \
|
||||
$(filter-out $($<_FILE_FILTER_OUT_FLAGS),$(ALL_CPLISTFLAGS))\
|
||||
$($<_FILE_FLAGS) $< -o $@$(END_ECHO)
|
||||
$($<_FILE_FLAGS) $< | sed '/^#pragma/d' > $@$(END_ECHO)
|
||||
|
||||
# The following rule builds a .c file from a lex .l file.
|
||||
# You can define LEX_FLAGS if you need them.
|
||||
|
|
Loading…
Reference in a new issue