mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 10:58:52 +00:00
avoid bash-isms when making pch.h.gch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9508 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
bec94eeade
commit
40b5d05445
@ -1,3 +1,8 @@
|
||||
2005-01-20 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
|
||||
|
||||
* common.am (pch-file): new target, used recursively by target
|
||||
$(PCH_FILE). This avoids bash-isms.
|
||||
|
||||
2005-01-12 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
|
||||
|
||||
* lyxinclude.m4: fix default win32 prefix
|
||||
|
@ -19,11 +19,12 @@ sinclude ./pch.h.gch.dep
|
||||
*.C *.cpp: $(PCH_FILE)
|
||||
|
||||
$(PCH_FILE): $(PCH_SOURCE)
|
||||
TMPCMD=` echo $(CXXCOMPILE) | sed -e s,\",\',` ; \
|
||||
PATTERN=`echo $(PCH_FLAGS) | sed -e 's,\/,\\\/,'` ; \
|
||||
$${TMPCMD/$$PATTERN} \
|
||||
-x c++-header $(PCH_SOURCE) -MT $@ -MD -MP -MF "./$@.Tdep" \
|
||||
&& mv "./$@.Tdep" "./$@.dep" || rm "./$@.Tdep"
|
||||
$(MAKE) PCH_FLAGS= pch-file
|
||||
|
||||
pch-file:
|
||||
$(CXXCOMPILE) -x c++-header $(PCH_SOURCE) -MT $(PCH_FILE) -MD -MP \
|
||||
-MF "./$(PCH_FILE).Tdep" \
|
||||
&& mv "./$(PCH_FILE).Tdep" "./$(PCH_FILE).dep" || rm "./$(PCH_FILE).Tdep"
|
||||
|
||||
endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user