Make monolithic build code portable to Mac OS

"echo -e" is definitely not portable. Use a plain loop instead.

Also use the automake silent rule mechanism to make the generation of monolithic source files visible.
This commit is contained in:
Jean-Marc Lasgouttes 2016-04-13 18:27:42 +02:00 committed by Richard Heck
parent aef78c821f
commit 890a1efe47
3 changed files with 5 additions and 5 deletions

View File

@ -323,7 +323,7 @@ BUILT_SOURCES = lyx_commit_hash.h
CLEANFILES = lyx_commit_hash.h CLEANFILES = lyx_commit_hash.h
lyxcore.cpp: lyxcore.cpp:
@echo -e '$(SOURCEFILESCORE:%=\n#include "%")\n' > $@ $(AM_V_GEN)for file in $(SOURCEFILESCORE) ; do echo '#include "'$${file}'"' ; done >$@
if MONOLITHIC_CORE if MONOLITHIC_CORE
@ -535,7 +535,7 @@ HEADERFILESMATHED = \
mathed/TextPainter.h mathed/TextPainter.h
lyxmathed.cpp: lyxmathed.cpp:
@echo -e '$(SOURCEFILESMATHED:%=\n#include "%")\n' > $@ $(AM_V_GEN)for file in $(SOURCEFILESMATHED) ; do echo '#include "'$${file}'"' ; done >$@
if MONOLITHIC_MATHED if MONOLITHIC_MATHED
@ -678,7 +678,7 @@ HEADERFILESINSETS = \
# insets/InsetSection.cpp # insets/InsetSection.cpp
lyxinsets.cpp: lyxinsets.cpp:
@echo -e '$(SOURCEFILESINSETS:%=\n#include "%")\n' > $@ $(AM_V_GEN)for file in $(SOURCEFILESINSETS) ; do echo '#include "'$${file}'"' ; done >$@
if MONOLITHIC_INSETS if MONOLITHIC_INSETS

View File

@ -35,7 +35,7 @@ HEADERFILES =
lyxclient.cpp: lyxclient.cpp:
@echo -e '$(SOURCEFILES:%=\n#include "%")\n' > $@ $(AM_V_GEN)for file in $(SOURCEFILES) ; do echo '#include "'$${file}'"' ; done >$@
if MONOLITHIC_CLIENT if MONOLITHIC_CLIENT

View File

@ -357,7 +357,7 @@ UIFILES = \
nodist_liblyxqt4_a_SOURCES = Resources.cpp nodist_liblyxqt4_a_SOURCES = Resources.cpp
liblyxqt4.cpp: liblyxqt4.cpp:
@echo -e '$(SOURCEFILES:%=\n#include "%")\n' > $@ $(AM_V_GEN)for file in $(SOURCEFILES) ; do echo '#include "'$${file}'"' ; done >$@
if MONOLITHIC_FRONTEND_QT if MONOLITHIC_FRONTEND_QT