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:
Jean-Marc Lasgouttes 2005-01-20 14:44:19 +00:00
parent bec94eeade
commit 40b5d05445
2 changed files with 11 additions and 5 deletions

View File

@ -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

View File

@ -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