Code

define ndistclean-local to get rid of test files, write inkscape.pot rule, fix POTFIL...
[inkscape.git] / src / Makefile.am
1 ## Process this file with automake to produce Makefile.in
4 # ################################################
5 #
6 #  G L O B A L
7 #
8 # ################################################
10 # Should work in either automake1.7 or 1.8, but 1.6 doesn't
11 # handle foo/libfoo_a_CPPFLAGS properly (if at all).
12 # Update: We now avoid setting foo/libfoo_a_CPPFLAGS,
13 # so perhaps 1.6 will work.
14 AUTOMAKE_OPTIONS = 1.7 subdir-objects
16 INCLUDES =      \
17         $(PERL_CFLAGS) $(PYTHON_CFLAGS) \
18         $(FREETYPE_CFLAGS)      \
19         $(GNOME_PRINT_CFLAGS)   \
20         $(GNOME_VFS_CFLAGS)     \
21         $(LIBLOUDMOUTH_CFLAGS) \
22         $(XFT_CFLAGS)   \
23         -DPOTRACE=\"potrace\"   \
24         $(INKSCAPE_CFLAGS) \
25         -I$(top_srcdir)/cxxtest
27 include Makefile_insert
28 include application/Makefile_insert
29 include dialogs/Makefile_insert
30 include display/Makefile_insert
31 include dom/Makefile_insert
32 include extension/Makefile_insert
33 include extension/implementation/Makefile_insert
34 include extension/internal/Makefile_insert
35 include extension/script/Makefile_insert
36 include helper/Makefile_insert
37 include inkjar/Makefile_insert
38 include io/Makefile_insert
39 include jabber_whiteboard/Makefile_insert
40 include libcroco/Makefile_insert
41 include libnr/Makefile_insert
42 include libnrtype/Makefile_insert
43 include libavoid/Makefile_insert
44 include livarot/Makefile_insert
45 include removeoverlap/Makefile_insert
46 include graphlayout/Makefile_insert
47 include svg/Makefile_insert
48 include utest/Makefile_insert
49 include widgets/Makefile_insert
50 include debug/Makefile_insert
51 include xml/Makefile_insert
52 include traits/Makefile_insert
53 include algorithms/Makefile_insert
54 include ui/Makefile_insert
55 include ui/dialog/Makefile_insert
56 include ui/view/Makefile_insert
57 include ui/widget/Makefile_insert
58 include util/Makefile_insert
59 include trace/Makefile_insert
61 bin_PROGRAMS = inkscape inkview
63 noinst_LIBRARIES =      \
64         libinkpre.a     \
65         application/libinkapp.a \
66         dialogs/libspdialogs.a  \
67         jabber_whiteboard/libjabber_whiteboard.a \
68         display/libspdisplay.a  \
69         dom/libdom.a    \
70         extension/implementation/libimplementation.a    \
71         extension/internal/libinternal.a        \
72         extension/libextension.a        \
73         extension/script/libscript.a    \
74         helper/libspchelp.a     \
75         io/libio.a      \
76         libcroco/libcroco.a     \
77         ui/libui.a      \
78         ui/dialog/libuidialog.a \
79         ui/view/libuiview.a     \
80         ui/widget/libuiwidget.a \
81         util/libinkutil.a \
82         debug/libinkdebug.a \
83         $(inkjar_libs)  \
84         libnr/libnr.a   \
85         libnrtype/libnrtype.a   \
86         libavoid/libavoid.a     \
87         livarot/libvarot.a      \
88         removeoverlap/libremoveoverlap.a        \
89         graphlayout/libgraphlayout.a    \
90         svg/libspsvg.a  \
91         widgets/libspwidgets.a  \
92         trace/libtrace.a  \
93         xml/libspxml.a  \
94         libinkpost.a
96 check_LIBRARIES =       \
97         libnr/libtest-nr.a      \
98         svg/libtest-svg.a       \
99         xml/libtest-xml.a
101 DISTCLEANFILES =        \
102         helper/sp-marshal.cpp   \
103         helper/sp-marshal.h     \
104         inkscape_version.h
106 EXTRA_DIST =    \
107         mkdep.pl        \
108         mkfiles.pl      \
109         make.exclude    \
110         Doxyfile        \
111         sp-skeleton.cpp sp-skeleton.h   \
112         algorithms/makefile.in  \
113         application/makefile.in \
114         debug/makefile.in       \
115         dialogs/makefile.in     \
116         dialogs/filedialog-win32.cpp    \
117         display/makefile.in     \
118         dom/makefile.in         \
119         extension/implementation/makefile.in    \
120         extension/internal/makefile.in  \
121         extension/makefile.in   \
122         extension/plugin/makefile.in    \
123         extension/script/makefile.in    \
124         helper/makefile.in      \
125         inkjar/makefile.in      \
126         io/makefile.in  \
127         io/crystalegg.xml       \
128         io/doc2html.xsl         \
129         jabber_whiteboard/makefile.in   \
130         libcroco/makefile.in    \
131         libnr/makefile.in       \
132         libnrtype/makefile.in   \
133         libavoid/makefile.in    \
134         livarot/makefile.in     \
135         removeoverlap/makefile.in       \
136         svg/makefile.in         \
137         trace/makefile.in       \
138         traits/makefile.in      \
139         utest/makefile.in       \
140         ui/makefile.in          \
141         ui/dialog/makefile.in   \
142         ui/view/makefile.in     \
143         ui/widget/makefile.in   \
144         util/makefile.in        \
145         widgets/makefile.in     \
146         xml/makefile.in         \
147         extension/internal/gnome.cpp    \
148         extension/internal/gnome.h      \
149         extension/internal/win32.cpp    \
150         extension/internal/win32.h      \
151         helper/sp-marshal.list  \
152         utest/utest.h   \
153         utest/test-1ary-cases.h \
154         traits/copy.h   \
155         traits/function.h       \
156         traits/list-copy.h      \
157         traits/reference.h \
158         $(jabber_whiteboard_SOURCES)
160 EXTRA_PROGRAMS =        \
161         inkview         \
162         libnr/testnr
164 TESTS = \
165         test-all$(EXEEXT)       \
166         style-test$(EXEEXT)     \
167         display/bezier-utils-test$(EXEEXT)      \
168         helper/units-test$(EXEEXT)      \
169         libnr/in-svg-plane-test$(EXEEXT)        \
170         libnr/nr-matrix-test$(EXEEXT)   \
171         libnr/nr-point-fns-test$(EXEEXT)        \
172         libnr/nr-rotate-test$(EXEEXT)   \
173         libnr/nr-rotate-fns-test$(EXEEXT)       \
174         libnr/nr-scale-test$(EXEEXT)    \
175         libnr/nr-translate-test$(EXEEXT)        \
176         libnr/nr-types-test$(EXEEXT)    \
177         libnr/test-nr$(EXEEXT)  \
178         removeoverlap/remove_rectangle_overlap-test$(EXEEXT)    \
179         svg/test-svg$(EXEEXT)   \
180         util/list-container-test$(EXEEXT)       \
181         xml/test-xml$(EXEEXT)   \
182         xml/quote-test$(EXEEXT) \
183         xml/repr-action-test$(EXEEXT)
185 # streamtest is unfinished and can't handle the relocations done during
186 # "make distcheck".  Not needed for the 0.41 release.
187 #       io/streamtest$(EXEEXT)
189 # automake adds $(EXEEXT) to check_PROGRAMS items but not to TESTS items:
190 # TESTS items can be scripts etc.
192 check_PROGRAMS =        \
193         test-all        \
194         style-test      \
195         display/bezier-utils-test       \
196         helper/units-test       \
197         libnr/in-svg-plane-test \
198         libnr/nr-matrix-test    \
199         libnr/nr-point-fns-test \
200         libnr/nr-rotate-test    \
201         libnr/nr-rotate-fns-test        \
202         libnr/nr-scale-test     \
203         libnr/nr-translate-test \
204         libnr/nr-types-test     \
205         libnr/test-nr   \
206         removeoverlap/remove_rectangle_overlap-test     \
207         svg/test-svg    \
208         util/list-container-test        \
209         xml/test-xml    \
210         xml/quote-test  \
211         xml/repr-action-test
213 #       io/streamtest
216 test-all.cpp: \
217                 $(libnr_test_nr_a_SOURCES)      \
218                 $(svg_test_svg_a_SOURCES)       \
219                 $(xml_test_xml_a_SOURCES)       \
220                 $(libnr_test_nr_includes)       \
221                 $(svg_test_svg_includes)        \
222                 $(xml_test_xml_includes)        \
223                 $(test_all_includes)
224         $(top_srcdir)/cxxtest/cxxtestgen.pl --template=selfname.tpl -root -o test-all.cpp       \
225                 $(libnr_test_nr_includes)       \
226                 $(svg_test_svg_includes)        \
227                 $(xml_test_xml_includes)        \
228                 $(test_all_includes)
230 test_all_SOURCES = \
231         test-all.cpp $(test_all_includes)
234 test_all_LDADD =        \
235         $(all_libs)     \
236         $(svg_test_svg_LDADD)   \
237         $(libnr_test_nr_LDADD)  \
238         $(xml_test_xml_LDADD) \
239         io/libio.a      
242 # ################################################
244 #  D I S T
246 # ################################################
248 dist-hook:
249         mkdir $(distdir)/pixmaps
250         cp $(srcdir)/pixmaps/*xpm $(distdir)/pixmaps
252 distclean-local:
253         rm -f libnr/test-nr.xml libnr/test-nr.log svg/test-svg.xml svg/test-svg.log xml/test-xml.xml xml/test-xml.log test-all.xml test-all.log