diff --git a/src/client/Makefile.am b/src/client/Makefile.am index d3c4da45d5..93b37be04d 100644 --- a/src/client/Makefile.am +++ b/src/client/Makefile.am @@ -37,6 +37,8 @@ HEADERFILES = lyxclient.cpp: @echo -e '$(SOURCEFILES:%=\n#include "%")\n' > $@ +EXTRA_DIST += pch.h + if MONOLITHIC_CLIENT AM_CPPFLAGS += -I$(srcdir)/.. $(BOOST_INCLUDES) @@ -47,7 +49,6 @@ lyxclient_SOURCES = lyxclient.cpp $(HEADERFILES) else -EXTRA_DIST += pch.h AM_CPPFLAGS += $(PCH_FLAGS) BUILT_SOURCES = $(PCH_FILE) diff --git a/src/frontends/qt4/Makefile.am b/src/frontends/qt4/Makefile.am index fc42e9b9d6..06b247c97a 100644 --- a/src/frontends/qt4/Makefile.am +++ b/src/frontends/qt4/Makefile.am @@ -361,6 +361,8 @@ UIFILES = \ liblyxqt4.cpp: @echo -e '$(SOURCEFILES:%=\n#include "%")\n' > $@ +EXTRA_DIST = pch.h $(UIFILES:%=ui/%) + if MONOLITHIC_FRONTEND_QT4 liblyxqt4_a_SOURCES = \ @@ -378,7 +380,6 @@ liblyxqt4_a_SOURCES = \ $(MOCHEADER) \ $(NOMOCHEADER) -EXTRA_DIST = pch.h $(UIFILES:%=ui/%) BUILT_SOURCES += $(PCH_FILE) AM_CPPFLAGS += $(PCH_FLAGS)