Code

remove old and apparently unused hack that was causing bug 192060
[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         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         src/helper/sp-marshal.cpp.mingw src/helper/sp-marshal.h.mingw \
52         src/2geom/angle.h \
53         src/inkscape-manifest.xml src/inkview-manifest.xml \
54         cxxtest/COPYING \
55         cxxtest/cxxtestgen.pl \
56         cxxtest/cxxtestgen.py \
57         cxxtest/cxxtest/Descriptions.cpp \
58         cxxtest/cxxtest/Descriptions.h \
59         cxxtest/cxxtest/DummyDescriptions.cpp \
60         cxxtest/cxxtest/DummyDescriptions.h \
61         cxxtest/cxxtest/ErrorFormatter.h \
62         cxxtest/cxxtest/ErrorPrinter.h \
63         cxxtest/cxxtest/Flags.h \
64         cxxtest/cxxtest/GlobalFixture.cpp \
65         cxxtest/cxxtest/GlobalFixture.h \
66         cxxtest/cxxtest/Gui.h \
67         cxxtest/cxxtest/LinkedList.cpp \
68         cxxtest/cxxtest/LinkedList.h \
69         cxxtest/cxxtest/Mock.h \
70         cxxtest/cxxtest/ParenPrinter.h \
71         cxxtest/cxxtest/QtGui.h \
72         cxxtest/cxxtest/RealDescriptions.cpp \
73         cxxtest/cxxtest/RealDescriptions.h \
74         cxxtest/cxxtest/Root.cpp \
75         cxxtest/cxxtest/SelfTest.h \
76         cxxtest/cxxtest/StdHeaders.h \
77         cxxtest/cxxtest/StdValueTraits.h \
78         cxxtest/cxxtest/StdioFilePrinter.h \
79         cxxtest/cxxtest/StdioPrinter.h \
80         cxxtest/cxxtest/TeeListener.h \
81         cxxtest/cxxtest/TestListener.h \
82         cxxtest/cxxtest/TestRunner.h \
83         cxxtest/cxxtest/TestSuite.cpp \
84         cxxtest/cxxtest/TestSuite.h \
85         cxxtest/cxxtest/TestTracker.cpp \
86         cxxtest/cxxtest/TestTracker.h \
87         cxxtest/cxxtest/ValueTraits.cpp \
88         cxxtest/cxxtest/ValueTraits.h \
89         cxxtest/cxxtest/Win32Gui.h \
90         cxxtest/cxxtest/X11Gui.h \
91         cxxtest/cxxtest/YesNoRunner.h \
92         packaging/autopackage/default.apspec.in \
93         packaging/macosx/dmg_background.png     \
94         packaging/macosx/inkscape.ds_store      \
95         packaging/macosx/osx-app.sh     \
96         packaging/macosx/osx-dmg.sh     \
97         packaging/macosx/osx-build.sh   \
98         packaging/macosx/Resources/MenuBar.nib/classes.nib      \
99         packaging/macosx/Resources/MenuBar.nib/info.nib \
100         packaging/macosx/Resources/MenuBar.nib/objects.xib      \
101         packaging/macosx/Resources/inkscape_ai.icns     \
102         packaging/macosx/Resources/inkscape_document.icns       \
103         packaging/macosx/Resources/inkscape_eps.icns    \
104         packaging/macosx/Resources/inkscape_epsi.icns   \
105         packaging/macosx/Resources/inkscape_pdf.icns    \
106         packaging/macosx/Resources/inkscape_ps.icns     \
107         packaging/macosx/Resources/inkscape_svg.icns    \
108         packaging/macosx/Resources/inkscape_svgz.icns   \
109         packaging/macosx/Resources/inkscape_wmf.icns    \
110         packaging/macosx/Resources/Inkscape.icns        \
111         packaging/macosx/Resources/openDoc      \
112         packaging/macosx/Resources/script       \
113         packaging/macosx/Resources/ProgressWindow.nib/classes.nib       \
114         packaging/macosx/Resources/ProgressWindow.nib/info.nib  \
115         packaging/macosx/Resources/ProgressWindow.nib/objects.xib       \
116         packaging/macosx/Resources/bin/getdisplay.sh    \
117         packaging/macosx/Resources/bin/inkscape \
118         packaging/macosx/Resources/etc/fonts/fonts.conf \
119         packaging/macosx/Resources/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/pre_gtkrc \
120         packaging/macosx/Resources/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/sync_osx_look.sh \
121         packaging/macosx/Resources/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/Scrollbars/stepper-down.png \
122         packaging/macosx/Resources/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/Scrollbars/stepper-left.png \
123         packaging/macosx/Resources/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/Scrollbars/stepper-right.png \
124         packaging/macosx/Resources/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/Scrollbars/stepper-up.png \
125         packaging/macosx/Resources/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/Scrollbars/trough-scrollbar-horiz.png \
126         packaging/macosx/Resources/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/Scrollbars/trough-scrollbar-vert.png \
127         packaging/macosx/Resources/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/Scrollbars_1/copy-slider.sh \
128         packaging/macosx/Resources/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/Scrollbars_1/slider-horiz-prelight.png \
129         packaging/macosx/Resources/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/Scrollbars_1/slider-horiz.png \
130         packaging/macosx/Resources/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/Scrollbars_1/slider-vert-prelight.png \
131         packaging/macosx/Resources/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/Scrollbars_1/slider-vert.png \
132         packaging/macosx/Resources/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/Scrollbars_6/copy-slider.sh \
133         packaging/macosx/Resources/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/Scrollbars_6/slider-horiz-prelight.png \
134         packaging/macosx/Resources/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/Scrollbars_6/slider-horiz.png \
135         packaging/macosx/Resources/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/Scrollbars_6/slider-vert-prelight.png \
136         packaging/macosx/Resources/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/Scrollbars_6/slider-vert.png \
137         packaging/macosx/ScriptExec/English.lproj/main.nib/classes.nib  \
138         packaging/macosx/ScriptExec/English.lproj/main.nib/info.nib     \
139         packaging/macosx/ScriptExec/English.lproj/main.nib/objects.xib  \
140         packaging/macosx/ScriptExec/English.lproj/InfoPlist.strings     \
141         packaging/macosx/ScriptExec/Info.plist  \
142         packaging/macosx/ScriptExec/ScriptExec_Prefix.pch       \
143         packaging/macosx/ScriptExec/main.c      \
144         packaging/macosx/ScriptExec/openDoc     \
145         packaging/macosx/ScriptExec/script      \
146         packaging/macosx/ScriptExec/version.plist       \
147         packaging/macosx/ScriptExec/MenuBar.nib/classes.nib     \
148         packaging/macosx/ScriptExec/MenuBar.nib/info.nib        \
149         packaging/macosx/ScriptExec/MenuBar.nib/objects.xib     \
150         packaging/macosx/ScriptExec/ScriptExec.xcode/project.pbxproj    \
151         packaging/macosx/ScriptExec/ScriptExec.xcodeproj/project.pbxproj \
152         packaging/win32/inkscape.nsi    \
153         packaging/win32/inkscape.nsi.uninstall  \
154         packaging/win32/catalan.nsh     \
155         packaging/win32/czech.nsh       \
156         packaging/win32/english.nsh     \
157         packaging/win32/finnish.nsh     \
158         packaging/win32/french.nsh      \
159         packaging/win32/galician.nsh    \
160         packaging/win32/german.nsh      \
161         packaging/win32/italian.nsh     \
162         packaging/win32/japanese.nsh    \
163         packaging/win32/polish.nsh      \
164         packaging/win32/russian.nsh     \
165         packaging/win32/slovak.nsh      \
166         packaging/win32/slovenian.nsh   \
167         packaging/win32/spanish.nsh     \
168         packaging/win32/header.bmp      \
169         packaging/win32/AdvUninstLog.nsh        \
170         packaging/win32/AdvUninstLog.txt        \
171         packaging/win32/md5dll.dll      \
172         packaging/win32/md5dll.txt      \
173         packaging/win32/messagebox.dll  \
174         packaging/win32/MessageBox.txt  \
175         po/inkscape.pot \
176         po/update_po_files.sh \
177         src/inkscape.rc src/inkview.rc
179 # We want the built inkscape.1 to go in the distributed .tar.gz so
180 # that .tar.gz users don't need a full perl distribution to get a man
181 # page.
183 DISTCLEANFILES = inkscape.desktop \
184                  intltool-extract \
185                  intltool-merge \
186                  intltool-update
188 #ACLOCAL_AMFLAGS = -I m4
190 SUFFIXES = .pod .1
191 inkscape.1 inkscape.fr.1: fix-roff-punct Makefile.am AUTHORS utf8-to-roff
192 .pod.1:
193         set -e; \
194         d=`sed -n 's,/,-,g;s,.*\$$[D]ate: \(..........\).*,\1,p' $<`; \
195         pod2man $< \
196           | sed 's/^\.TH .*/.TH INKSCAPE 1 "'"$$d"'" "Inkscape-$(VERSION)" "Inkscape"/' \
197           | perl -pe 'if (/^\[\% .*INCLUDE.*AUTHORS.* \%\]/) { open(FOO, "$(srcdir)/AUTHORS");$$_ = join(",\n", map { chomp; $$_ } <FOO>) . "\n"; }' \
198           | perl $(srcdir)/fix-roff-punct \
199           | perl -CI $(srcdir)/utf8-to-roff     \
200           > tmp.$$$$ \
201          && mv -f tmp.$$$$ $@
202 # man 7 groff_char for further remarks on charset encoding for man pages.
204 po/inkscape.pot:
205         (cd $(srcdir)/po ; intltool-update --pot --output-file=$(distdir)/po/inkscape.pot)
207 install-data-local: inkscape.fr.1
208         $(mkinstalldirs) $(DESTDIR)$(mandir)/fr/man1
209         $(INSTALL_DATA) `if [ -f inkscape.fr.1 ]; then :; else echo $(srcdir)/;fi`inkscape.fr.1 $(DESTDIR)$(mandir)/fr/man1/inkscape.1
211 .PHONY: warn_markup
212 noinst_DATA = warn_markup
213 warn_markup:
214         @if perl $(srcdir)/po/check-markup $(srcdir)/po/*.po; [ $$? = 1 ]; then \
215           echo "WARNING: Bad markup found in translations.  Please consider fixing the above problems." >&2; \
216         fi
218 .PHONY: check_markup
219 check_DATA = check_markup
220 check_markup:
221         perl $(srcdir)/po/check-markup $(srcdir)/po/*.po || [ $$? = 127 ]
222 #       # `make check' probably shouldn't require perl to be installed, hence ignoring 127.
224 distcheck-hook:
225         perl $(srcdir)/po/check-markup $(srcdir)/po/*.po
227 test-check-markup:
228         if perl -e 42; then \
229           perl $(srcdir)/po/check-markup $(srcdir)/po/bad.po.test 2>&1  \
230             | diff $(srcdir)/po/bad.po.test.exp -;      \
231         fi