]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/controllers/Makefile.am
next one
[lyx.git] / src / frontends / controllers / Makefile.am
index 69cf115005682c96af11ea8d56fe6202f3267371..ffb999b38e85417d816dfcc521bd4e4b0b28c540 100644 (file)
@@ -1,95 +1,82 @@
 include $(top_srcdir)/config/common.am
 
-SUBDIRS = tests
+AM_CPPFLAGS += -I$(top_srcdir)/src $(BOOST_INCLUDES)
 
-EXTRA_DIST = pch.h BCView.tmpl
+EXTRA_DIST = tests/regfiles/biblio
 
-BUILT_SOURCES = $(PCH_FILE)
+noinst_LTLIBRARIES = liblyxcontrollers.la
+
+SOURCEFILES = \
+       Dialog.cpp \
+       ButtonPolicy.cpp \
+       ControlCommand.cpp \
+       ControlCommandBuffer.cpp \
+       ControlDocument.cpp \
+       ControlExternal.cpp \
+       ControlGraphics.cpp \
+       ControlMath.cpp \
+       ControlParagraph.cpp \
+       ControlPrefs.cpp \
+       ControlPrint.cpp \
+       ControlSearch.cpp \
+       ControlSendto.cpp \
+       ControlThesaurus.cpp \
+       ControlToc.cpp \
+       frontend_helpers.cpp 
 
-noinst_LTLIBRARIES = libcontrollers.la
-
-AM_CPPFLAGS += $(PCH_FLAGS) -I$(top_srcdir)/src $(BOOST_INCLUDES)
-
-libcontrollers_la_SOURCES= \
-       Dialog.C \
-       Dialog.h \
-       Kernel.C \
-       Kernel.h \
-       BCView.h \
-       BCView.C \
-       ButtonController.C \
-       ButtonController.h \
-       ButtonPolicies.C \
-       ButtonPolicies.h \
-       ControlAboutlyx.C \
-       ControlAboutlyx.h \
-       ControlBibtex.C \
-       ControlBibtex.h \
-       ControlBox.C \
-       ControlBox.h \
-       ControlBranch.C \
-       ControlBranch.h \
-       ControlCharacter.C \
-       ControlCharacter.h \
-       ControlChanges.C \
-       ControlChanges.h \
-       ControlCitation.C \
-       ControlCitation.h \
-       ControlCommand.C \
+HEADERFILES = \
+       ButtonPolicy.h \
        ControlCommand.h \
-       ControlCommandBuffer.C \
        ControlCommandBuffer.h \
-       ControlDocument.C \
        ControlDocument.h \
-       ControlErrorList.C \
-       ControlErrorList.h \
-       ControlERT.C \
-       ControlERT.h \
-       ControlExternal.C \
        ControlExternal.h \
-       ControlFloat.C \
-       ControlFloat.h \
-       ControlGraphics.C \
        ControlGraphics.h \
-       ControlInclude.C \
-       ControlInclude.h \
-       ControlLog.C \
-       ControlLog.h \
-       ControlViewSource.C \
-       ControlViewSource.h \
-       ControlMath.C \
        ControlMath.h \
-       ControlNote.C \
-       ControlNote.h \
-       ControlParagraph.C \
        ControlParagraph.h \
-       ControlPrefs.C \
        ControlPrefs.h \
-       ControlPrint.C \
        ControlPrint.h \
-       ControlRef.C \
-       ControlRef.h \
-       ControlSearch.C \
        ControlSearch.h \
-       ControlSendto.C \
        ControlSendto.h \
-       ControlShowFile.C \
-       ControlShowFile.h \
-       ControlSpellchecker.C \
-       ControlSpellchecker.h \
-       ControlTabular.C \
-       ControlTabular.h \
-       ControlTabularCreate.C \
-       ControlTabularCreate.h \
-       ControlTexinfo.C \
-       ControlTexinfo.h \
-       ControlThesaurus.C \
        ControlThesaurus.h \
-       ControlToc.C \
        ControlToc.h \
-       ControlVSpace.C \
-       ControlVSpace.h \
-       ControlWrap.C \
-       ControlWrap.h \
-       frontend_helpers.cpp \
        frontend_helpers.h
+
+if MONOLITHIC_CONTROLLERS
+
+lyxcontrollers.cpp:
+       @echo -e '$(SOURCEFILES:%=\n#include "%")\n' > $@
+
+BUILT_SOURCES = lyxcontrollers.cpp
+
+liblyxcontrollers_la_SOURCES = lyxcontrollers.cpp $(HEADERFILES) 
+
+else
+
+EXTRA_DIST += pch.h
+BUILT_SOURCES = $(PCH_FILE)
+AM_CPPFLAGS += $(PCH_FLAGS)
+
+liblyxcontrollers_la_SOURCES = $(SOURCEFILES) $(HEADERFILES)
+
+endif
+
+
+################################# Tests ################################
+
+EXTRA_DIST += tests/test_biblio
+
+TESTS = \
+       test_biblio
+
+check_PROGRAMS = \
+       biblio
+
+biblio_LDADD = $(BOOST_REGEX)
+biblio_SOURCES = \
+       tests/biblio.cpp \
+       tests/boost.cpp
+
+makeregfiles: ${check_PROGRAMS}
+       for all in ${check_PROGRAMS} ; do \
+               ./$$all > ${srcdir}/regfiles/$$all ; \
+       done