]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/Makefile.am
Add tests/regfiles/biblio to EXTRA_DIST
[lyx.git] / src / frontends / controllers / Makefile.am
1 include $(top_srcdir)/config/common.am
2
3 AM_CPPFLAGS += -I$(top_srcdir)/src $(BOOST_INCLUDES)
4
5 EXTRA_DIST = tests/regfiles/biblio
6
7 pkglib_LTLIBRARIES = liblyxcontrollers.la
8
9 SOURCEFILES = \
10         Dialog.cpp \
11         ButtonPolicy.cpp \
12         ControlBibtex.cpp \
13         ControlBox.cpp \
14         ControlBranch.cpp \
15         ControlCharacter.cpp \
16         ControlChanges.cpp \
17         ControlCitation.cpp \
18         ControlCommand.cpp \
19         ControlCommandBuffer.cpp \
20         ControlDocument.cpp \
21         ControlEmbeddedFiles.cpp \
22         ControlErrorList.cpp \
23         ControlERT.cpp \
24         ControlExternal.cpp \
25         ControlFloat.cpp \
26         ControlGraphics.cpp \
27         ControlInclude.cpp \
28         ControlListings.cpp \
29         ControlLog.cpp \
30         ControlViewSource.cpp \
31         ControlMath.cpp \
32         ControlNote.cpp \
33         ControlParagraph.cpp \
34         ControlPrefs.cpp \
35         ControlPrint.cpp \
36         ControlRef.cpp \
37         ControlSearch.cpp \
38         ControlSendto.cpp \
39         ControlShowFile.cpp \
40         ControlSpellchecker.cpp \
41         ControlTabular.cpp \
42         ControlTabularCreate.cpp \
43         ControlTexinfo.cpp \
44         ControlThesaurus.cpp \
45         ControlToc.cpp \
46         ControlVSpace.cpp \
47         ControlWrap.cpp \
48         frontend_helpers.cpp 
49
50 HEADERFILES = \
51         ButtonPolicy.h \
52         ControlBibtex.h \
53         ControlBox.h \
54         ControlBranch.h \
55         ControlCharacter.h \
56         ControlChanges.h \
57         ControlCitation.h \
58         ControlCommand.h \
59         ControlCommandBuffer.h \
60         ControlDocument.h \
61         ControlErrorList.h \
62         ControlERT.h \
63         ControlEmbeddedFiles.h \
64         ControlExternal.h \
65         ControlFloat.h \
66         ControlGraphics.h \
67         ControlListings.h \
68         ControlInclude.h \
69         ControlLog.h \
70         ControlViewSource.h \
71         ControlMath.h \
72         ControlNote.h \
73         ControlParagraph.h \
74         ControlPrefs.h \
75         ControlPrint.h \
76         ControlRef.h \
77         ControlSearch.h \
78         ControlSendto.h \
79         ControlShowFile.h \
80         ControlSpellchecker.h \
81         ControlTabular.h \
82         ControlTabularCreate.h \
83         ControlTexinfo.h \
84         ControlThesaurus.h \
85         ControlToc.h \
86         ControlVSpace.h \
87         ControlWrap.h \
88         frontend_helpers.h
89
90 if MONOLITHIC_CONTROLLERS
91
92 lyxcontrollers.cpp:
93         @echo -e '$(SOURCEFILES:%=\n#include "%")\n' > $@
94
95 BUILT_SOURCES = lyxcontrollers.cpp
96
97 liblyxcontrollers_la_SOURCES = lyxcontrollers.cpp $(HEADERFILES) 
98
99 else
100
101 EXTRA_DIST += pch.h
102 BUILT_SOURCES = $(PCH_FILE)
103 AM_CPPFLAGS += $(PCH_FLAGS)
104
105 liblyxcontrollers_la_SOURCES = $(SOURCEFILES) $(HEADERFILES)
106
107 endif
108
109
110 ################################# Tests ################################
111
112 EXTRA_DIST += tests/test_biblio
113
114 TESTS = \
115         test_biblio
116
117 check_PROGRAMS = \
118         biblio
119
120 biblio_LDADD = $(BOOST_REGEX)
121 biblio_SOURCES = \
122         tests/biblio.cpp \
123         tests/boost.cpp
124
125 makeregfiles: ${check_PROGRAMS}
126         for all in ${check_PROGRAMS} ; do \
127                 ./$$all > ${srcdir}/regfiles/$$all ; \
128         done