mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-29 05:01:49 +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>
|
2005-01-12 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
|
||||||
|
|
||||||
* lyxinclude.m4: fix default win32 prefix
|
* lyxinclude.m4: fix default win32 prefix
|
||||||
|
@ -19,11 +19,12 @@ sinclude ./pch.h.gch.dep
|
|||||||
*.C *.cpp: $(PCH_FILE)
|
*.C *.cpp: $(PCH_FILE)
|
||||||
|
|
||||||
$(PCH_FILE): $(PCH_SOURCE)
|
$(PCH_FILE): $(PCH_SOURCE)
|
||||||
TMPCMD=` echo $(CXXCOMPILE) | sed -e s,\",\',` ; \
|
$(MAKE) PCH_FLAGS= pch-file
|
||||||
PATTERN=`echo $(PCH_FLAGS) | sed -e 's,\/,\\\/,'` ; \
|
|
||||||
$${TMPCMD/$$PATTERN} \
|
pch-file:
|
||||||
-x c++-header $(PCH_SOURCE) -MT $@ -MD -MP -MF "./$@.Tdep" \
|
$(CXXCOMPILE) -x c++-header $(PCH_SOURCE) -MT $(PCH_FILE) -MD -MP \
|
||||||
&& mv "./$@.Tdep" "./$@.dep" || rm "./$@.Tdep"
|
-MF "./$(PCH_FILE).Tdep" \
|
||||||
|
&& mv "./$(PCH_FILE).Tdep" "./$(PCH_FILE).dep" || rm "./$(PCH_FILE).Tdep"
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user