Code

fix for [ 1648244 ] build files missing for 0.45pre2
[inkscape.git] / Makefile.am
1 ## Process this file with automake to produce Makefile.in
3 AUTOMAKE_OPTIONS = foreign
5 SUBDIRS = src doc share po
7 appicondir = $(datadir)/pixmaps
8 appicon_DATA = inkscape.png
10 Graphicsdir = $(datadir)/applications
11 Graphics_in_files = inkscape.desktop.in
12 Graphics_DATA = $(Graphics_in_files:.desktop.in=.desktop)
13 @INTLTOOL_DESKTOP_RULE@
15 ## dist-hook:
16 ##      mkdir $(distdir)/samples
17 ##      cp $(srcdir)/samples/*svg $(distdir)/samples
18 ##      cp $(srcdir)/samples/*png $(distdir)/samples
19 ##      cp $(srcdir)/AUTHORS $(distdir)
20 ##      cp $(srcdir)/NEWS $(distdir)
23 man_MANS = inkscape.1 \
24                 inkview.1
26 EXTRA_DIST = \
27         acinclude.m4 \
28         fix-roff-punct  \
29         intltool-extract.in     \
30         intltool-merge.in       \
31         intltool-update.in      \
32         mkinstalldirs           \
33         $(Graphics_in_files)    \
34         po/check-markup \
35         utf8-to-roff \
36         inkscape.1              \
37         inkscape.fr.1           \
38         inkscape.pod            \
39         inkscape.fr.pod         \
40         inkscape.spec.in        \
41         inkscape.spec           \
42         Info.plist.in   \
43         Info.plist              \
44         inkscape.nsi            \
45         config.h.mingw Makefile.mingw Makefile.mingw.common mingwenv.bat buildtool.cpp build.xml        \
46         README README.ca.txt README.de.txt README.es.txt README.fr.txt README.it.txt    \
47         HACKING.txt HACKING.de.txt HACKING.fr.txt HACKING.it.txt        \
48         TRANSLATORS \
49         inkscape.png \
50         inkscape.ico inkscape16.ico inkscape32-16.ico inkscape32.ico inkscape64.ico \
51         cxxtest/COPYING \
52         cxxtest/cxxtestgen.pl \
53         cxxtest/cxxtestgen.py \
54         cxxtest/cxxtest/Descriptions.cpp \
55         cxxtest/cxxtest/Descriptions.h \
56         cxxtest/cxxtest/DummyDescriptions.cpp \
57         cxxtest/cxxtest/DummyDescriptions.h \
58         cxxtest/cxxtest/ErrorFormatter.h \
59         cxxtest/cxxtest/ErrorPrinter.h \
60         cxxtest/cxxtest/Flags.h \
61         cxxtest/cxxtest/GlobalFixture.cpp \
62         cxxtest/cxxtest/GlobalFixture.h \
63         cxxtest/cxxtest/Gui.h \
64         cxxtest/cxxtest/LinkedList.cpp \
65         cxxtest/cxxtest/LinkedList.h \
66         cxxtest/cxxtest/Mock.h \
67         cxxtest/cxxtest/ParenPrinter.h \
68         cxxtest/cxxtest/QtGui.h \
69         cxxtest/cxxtest/RealDescriptions.cpp \
70         cxxtest/cxxtest/RealDescriptions.h \
71         cxxtest/cxxtest/Root.cpp \
72         cxxtest/cxxtest/SelfTest.h \
73         cxxtest/cxxtest/StdHeaders.h \
74         cxxtest/cxxtest/StdValueTraits.h \
75         cxxtest/cxxtest/StdioFilePrinter.h \
76         cxxtest/cxxtest/StdioPrinter.h \
77         cxxtest/cxxtest/TeeListener.h \
78         cxxtest/cxxtest/TestListener.h \
79         cxxtest/cxxtest/TestRunner.h \
80         cxxtest/cxxtest/TestSuite.cpp \
81         cxxtest/cxxtest/TestSuite.h \
82         cxxtest/cxxtest/TestTracker.cpp \
83         cxxtest/cxxtest/TestTracker.h \
84         cxxtest/cxxtest/ValueTraits.cpp \
85         cxxtest/cxxtest/ValueTraits.h \
86         cxxtest/cxxtest/Win32Gui.h \
87         cxxtest/cxxtest/X11Gui.h \
88         cxxtest/cxxtest/YesNoRunner.h \
89         packaging/autopackage/default.apspec.in \
90         packaging/osx-app.sh    \
91         packaging/macosx/dmg_background.png     \
92         packaging/macosx/inkscape.ds_store      \
93         packaging/macosx/osx-dmg.sh     \
94         packaging/macosx/Resources/MenuBar.nib/classes.nib      \
95         packaging/macosx/Resources/MenuBar.nib/info.nib \
96         packaging/macosx/Resources/MenuBar.nib/objects.xib      \
97         packaging/macosx/Resources/EPS.icns     \
98         packaging/macosx/Resources/EPSI.icns    \
99         packaging/macosx/Resources/Inkscape.icns        \
100         packaging/macosx/Resources/SVG_plain.icns       \
101         packaging/macosx/Resources/inkscape_svg.icns    \
102         packaging/macosx/Resources/openDoc      \
103         packaging/macosx/Resources/postscript.icns      \
104         packaging/macosx/Resources/script       \
105         packaging/macosx/Resources/ProgressWindow.nib/classes.nib       \
106         packaging/macosx/Resources/ProgressWindow.nib/info.nib  \
107         packaging/macosx/Resources/ProgressWindow.nib/objects.xib       \
108         packaging/macosx/Resources/bin/getdisplay.sh    \
109         packaging/macosx/Resources/bin/inkscape \
110         packaging/macosx/Resources/etc/fonts/fonts.conf \
111         packaging/macosx/ScriptExec/English.lproj/main.nib/classes.nib  \
112         packaging/macosx/ScriptExec/English.lproj/main.nib/info.nib     \
113         packaging/macosx/ScriptExec/English.lproj/main.nib/objects.xib  \
114         packaging/macosx/ScriptExec/English.lproj/InfoPlist.strings     \
115         packaging/macosx/ScriptExec/Info.plist  \
116         packaging/macosx/ScriptExec/ScriptExec_Prefix.pch       \
117         packaging/macosx/ScriptExec/main.c      \
118         packaging/macosx/ScriptExec/openDoc     \
119         packaging/macosx/ScriptExec/script      \
120         packaging/macosx/ScriptExec/version.plist       \
121         packaging/macosx/ScriptExec/MenuBar.nib/classes.nib     \
122         packaging/macosx/ScriptExec/MenuBar.nib/info.nib        \
123         packaging/macosx/ScriptExec/MenuBar.nib/objects.xib     \
124         packaging/macosx/ScriptExec/ScriptExec.xcode/project.pbxproj    \
125         packaging/macosx/ScriptExec/ScriptExec.xcodeproj/project.pbxproj \
126         packaging/win32/inkscape.nsi    \
127         packaging/win32/inkscape.nsi.uninstall  \
128         packaging/win32/catalan.nsh     \
129         packaging/win32/czech.nsh       \
130         packaging/win32/english.nsh     \
131         packaging/win32/finnish.nsh     \
132         packaging/win32/french.nsh      \
133         packaging/win32/italian.nsh     \
134         packaging/win32/japanese.nsh    \
135         packaging/win32/polish.nsh      \
136         packaging/win32/german.nsh      \
137         packaging/win32/japanese.nsh    \
138         packaging/win32/russian.nsh     \
139         packaging/win32/slovak.nsh      \
140         packaging/win32/slovenian.nsh   \
141         packaging/win32/spanish.nsh     \
142         packaging/win32/header.bmp      \
143         po/Makefile.mingw \
144         po/inkscape.pot \
145         po/update_po_files.sh \
146         src/Makefile.mingw src/inkscape_version.h.mingw src/inkscape.rc src/inkview.rc  src/makedef.pl \
147         src/helper/sp-marshal.h.mingw src/helper/sp-marshal.cpp.mingw
149 # We want the built inkscape.1 to go in the distributed .tar.gz so
150 # that .tar.gz users don't need a full perl distribution to get a man
151 # page.
153 DISTCLEANFILES = inkscape.desktop \
154                  intltool-extract \
155                  intltool-merge \
156                  intltool-update
158 #ACLOCAL_AMFLAGS = -I m4
160 SUFFIXES = .pod .1
161 inkscape.1 inkscape.fr.1: fix-roff-punct Makefile.am AUTHORS utf8-to-roff
162 .pod.1:
163         set -e; \
164         d=`sed -n 's,/,-,g;s,.*\$$[D]ate: \(..........\).*,\1,p' $<`; \
165         pod2man $< \
166           | sed 's/^\.TH .*/.TH INKSCAPE 1 "'"$$d"'" "Inkscape-$(VERSION)" "Inkscape"/' \
167           | perl -pe 'if (/^\[\% .*INCLUDE.*AUTHORS.* \%\]/) { open(FOO, "$(srcdir)/AUTHORS");$$_ = join(",\n", map { chomp; $$_ } <FOO>) . "\n"; }' \
168           | perl $(srcdir)/fix-roff-punct \
169           | perl -CI $(srcdir)/utf8-to-roff     \
170           > tmp.$$$$ \
171          && mv -f tmp.$$$$ $@
172 # man 7 groff_char for further remarks on charset encoding for man pages.
174 po/inkscape.pot:
175         (cd po ; intltool-update --pot)
177 install-data-local: inkscape.fr.1
178         $(mkinstalldirs) $(DESTDIR)$(mandir)/fr/man1
179         $(INSTALL_DATA) `if [ -f inkscape.fr.1 ]; then :; else echo $(srcdir)/;fi`inkscape.fr.1 $(DESTDIR)$(mandir)/fr/man1/inkscape.1
181 .PHONY: warn_markup
182 noinst_DATA = warn_markup
183 warn_markup:
184         @if perl $(srcdir)/po/check-markup $(srcdir)/po/*.po; [ $$? = 1 ]; then \
185           echo "WARNING: Bad markup found in translations.  Please consider fixing the above problems." >&2; \
186         fi
188 .PHONY: check_markup
189 check_DATA = check_markup
190 check_markup:
191         perl $(srcdir)/po/check-markup $(srcdir)/po/*.po || [ $$? = 127 ]
192 #       # `make check' probably shouldn't require perl to be installed, hence ignoring 127.
194 distcheck-hook:
195         perl $(srcdir)/po/check-markup $(srcdir)/po/*.po
197 test-check-markup:
198         if perl -e 42; then \
199           perl $(srcdir)/po/check-markup $(srcdir)/po/bad.po.test 2>&1  \
200             | diff $(srcdir)/po/bad.po.test.exp -;      \
201         fi