X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fcontrollers%2FMakefile.am;h=ffb999b38e85417d816dfcc521bd4e4b0b28c540;hb=e093f9212b5fbb09811d2a27aa381105136e9cc5;hp=69636dd8d59adf8ddb0ad95e710efd9e4818319e;hpb=58d99b4a97b85a750704cf84c9639b408117271c;p=lyx.git diff --git a/src/frontends/controllers/Makefile.am b/src/frontends/controllers/Makefile.am index 69636dd8d5..ffb999b38e 100644 --- a/src/frontends/controllers/Makefile.am +++ b/src/frontends/controllers/Makefile.am @@ -1,89 +1,82 @@ -AUTOMAKE_OPTIONS = foreign 1.4 -DISTCLEANFILES= *.orig *.rej *~ *.bak core -MAINTAINERCLEANFILES = $(srcdir)/Makefile.in -noinst_LTLIBRARIES = libcontrollers.la -BOOST_INCLUDES = -I$(top_srcdir)/boost -INCLUDES = -I${top_srcdir}/src/ \ - -I${top_srcdir}/src/frontends/ \ - ${SIGC_CFLAGS} $(BOOST_INCLUDES) -LIBS = -SUBDIRS = -ETAGS_ARGS = --lang=c++ -libcontrollers_la_SOURCES=\ - biblio.C \ - biblio.h \ - character.C \ - character.h \ - ButtonController.h \ - ButtonControllerBase.C \ - ButtonControllerBase.h \ - ButtonPolicies.C \ - ButtonPolicies.h \ - ControlBibitem.C \ - ControlBibitem.h \ - ControlBibtex.C \ - ControlBibtex.h \ - ControlButton.C \ - ControlButton.h \ - ControlCharacter.C \ - ControlCharacter.h \ - ControlCitation.C \ - ControlCitation.h \ - ControlCommand.C \ +include $(top_srcdir)/config/common.am + +AM_CPPFLAGS += -I$(top_srcdir)/src $(BOOST_INCLUDES) + +EXTRA_DIST = tests/regfiles/biblio + +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 + +HEADERFILES = \ + ButtonPolicy.h \ ControlCommand.h \ - ControlConnections.C \ - ControlConnections.h \ - ControlCopyright.C \ - ControlCopyright.h \ - ControlCredits.h \ - ControlCredits.C \ - ControlDialogs.h \ - ControlError.h \ - ControlError.C \ + ControlCommandBuffer.h \ + ControlDocument.h \ ControlExternal.h \ - ControlExternal.C \ ControlGraphics.h \ - ControlGraphics.C \ - ControlInclude.C \ - ControlInclude.h \ - ControlIndex.C \ - ControlIndex.h \ - ControlInset.h \ - ControlLog.C \ - ControlLog.h \ - ControlMinipage.C \ - ControlMinipage.h \ - ControlPreamble.C \ - ControlPreamble.h \ - ControlPrint.C \ + ControlMath.h \ + ControlParagraph.h \ + ControlPrefs.h \ ControlPrint.h \ - ControlRef.C \ - ControlRef.h \ - ControlSearch.C \ ControlSearch.h \ - ControlSplash.C \ - ControlSplash.h \ - ControlTabularCreate.C \ - ControlTabularCreate.h \ - ControlUrl.C \ - ControlUrl.h \ - ControlVCLog.C \ - ControlVCLog.h \ - GUI.h \ - ViewBase.h \ - helper_funcs.C \ - helper_funcs.h - -# just copied from old lyx repository -dist-hook: - for subdir in $(LYXDATADIRS) ; do \ - test -d $(distdir)/$$subdir \ - || mkdir $(distdir)/$$subdir \ - || exit 1; \ - chmod 777 $(distdir)/$$subdir; \ - list=`(cd $(srcdir)/$$subdir && ls -1 | grep -v CVS)`; \ - echo $$list ; \ - for fil in $$list ; do \ - cp -p $(srcdir)/$$subdir/$$fil $(distdir)/$$subdir ; \ - done ; \ + ControlSendto.h \ + ControlThesaurus.h \ + ControlToc.h \ + 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