Code

Updated Makefile.am file lists for Mac OS X icons and share/examples
[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         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/macosx/dmg_background.png     \
91         packaging/macosx/inkscape.ds_store      \
92         packaging/macosx/inkscape_python.ds_store       \
93         packaging/macosx/osx-app.sh     \
94         packaging/macosx/osx-dmg.sh     \
95         packaging/macosx/osx-build.sh   \
96         packaging/macosx/Resources/MenuBar.nib/classes.nib      \
97         packaging/macosx/Resources/MenuBar.nib/info.nib \
98         packaging/macosx/Resources/MenuBar.nib/objects.xib      \
99         packaging/macosx/Resources/inkscape_ai.icns     \
100         packaging/macosx/Resources/inkscape_document.icns       \
101         packaging/macosx/Resources/inkscape_eps.icns    \
102         packaging/macosx/Resources/inkscape_epsi.icns   \
103         packaging/macosx/Resources/inkscape_pdf.icns    \
104         packaging/macosx/Resources/inkscape_ps.icns     \
105         packaging/macosx/Resources/inkscape_svg.icns    \
106         packaging/macosx/Resources/inkscape_svgz.icns   \
107         packaging/macosx/Resources/inkscape_wmf.icns    \
108         packaging/macosx/Resources/Inkscape.icns        \
109         packaging/macosx/Resources/openDoc      \
110         packaging/macosx/Resources/script       \
111         packaging/macosx/Resources/ProgressWindow.nib/classes.nib       \
112         packaging/macosx/Resources/ProgressWindow.nib/info.nib  \
113         packaging/macosx/Resources/ProgressWindow.nib/objects.xib       \
114         packaging/macosx/Resources/bin/getdisplay.sh    \
115         packaging/macosx/Resources/bin/inkscape \
116         packaging/macosx/Resources/etc/fonts/fonts.conf \
117         packaging/macosx/ScriptExec/English.lproj/main.nib/classes.nib  \
118         packaging/macosx/ScriptExec/English.lproj/main.nib/info.nib     \
119         packaging/macosx/ScriptExec/English.lproj/main.nib/objects.xib  \
120         packaging/macosx/ScriptExec/English.lproj/InfoPlist.strings     \
121         packaging/macosx/ScriptExec/Info.plist  \
122         packaging/macosx/ScriptExec/ScriptExec_Prefix.pch       \
123         packaging/macosx/ScriptExec/main.c      \
124         packaging/macosx/ScriptExec/openDoc     \
125         packaging/macosx/ScriptExec/script      \
126         packaging/macosx/ScriptExec/version.plist       \
127         packaging/macosx/ScriptExec/MenuBar.nib/classes.nib     \
128         packaging/macosx/ScriptExec/MenuBar.nib/info.nib        \
129         packaging/macosx/ScriptExec/MenuBar.nib/objects.xib     \
130         packaging/macosx/ScriptExec/ScriptExec.xcode/project.pbxproj    \
131         packaging/macosx/ScriptExec/ScriptExec.xcodeproj/project.pbxproj \
132         packaging/win32/inkscape.nsi    \
133         packaging/win32/inkscape.nsi.uninstall  \
134         packaging/win32/catalan.nsh     \
135         packaging/win32/czech.nsh       \
136         packaging/win32/english.nsh     \
137         packaging/win32/finnish.nsh     \
138         packaging/win32/french.nsh      \
139         packaging/win32/italian.nsh     \
140         packaging/win32/japanese.nsh    \
141         packaging/win32/polish.nsh      \
142         packaging/win32/german.nsh      \
143         packaging/win32/japanese.nsh    \
144         packaging/win32/russian.nsh     \
145         packaging/win32/slovak.nsh      \
146         packaging/win32/slovenian.nsh   \
147         packaging/win32/spanish.nsh     \
148         packaging/win32/header.bmp      \
149         po/inkscape.pot \
150         po/update_po_files.sh \
151         src/inkscape.rc src/inkview.rc
153 # We want the built inkscape.1 to go in the distributed .tar.gz so
154 # that .tar.gz users don't need a full perl distribution to get a man
155 # page.
157 DISTCLEANFILES = inkscape.desktop \
158                  intltool-extract \
159                  intltool-merge \
160                  intltool-update
162 #ACLOCAL_AMFLAGS = -I m4
164 SUFFIXES = .pod .1
165 inkscape.1 inkscape.fr.1: fix-roff-punct Makefile.am AUTHORS utf8-to-roff
166 .pod.1:
167         set -e; \
168         d=`sed -n 's,/,-,g;s,.*\$$[D]ate: \(..........\).*,\1,p' $<`; \
169         pod2man $< \
170           | sed 's/^\.TH .*/.TH INKSCAPE 1 "'"$$d"'" "Inkscape-$(VERSION)" "Inkscape"/' \
171           | perl -pe 'if (/^\[\% .*INCLUDE.*AUTHORS.* \%\]/) { open(FOO, "$(srcdir)/AUTHORS");$$_ = join(",\n", map { chomp; $$_ } <FOO>) . "\n"; }' \
172           | perl $(srcdir)/fix-roff-punct \
173           | perl -CI $(srcdir)/utf8-to-roff     \
174           > tmp.$$$$ \
175          && mv -f tmp.$$$$ $@
176 # man 7 groff_char for further remarks on charset encoding for man pages.
178 po/inkscape.pot:
179         (cd po ; intltool-update --pot)
181 install-data-local: inkscape.fr.1
182         $(mkinstalldirs) $(DESTDIR)$(mandir)/fr/man1
183         $(INSTALL_DATA) `if [ -f inkscape.fr.1 ]; then :; else echo $(srcdir)/;fi`inkscape.fr.1 $(DESTDIR)$(mandir)/fr/man1/inkscape.1
185 .PHONY: warn_markup
186 noinst_DATA = warn_markup
187 warn_markup:
188         @if perl $(srcdir)/po/check-markup $(srcdir)/po/*.po; [ $$? = 1 ]; then \
189           echo "WARNING: Bad markup found in translations.  Please consider fixing the above problems." >&2; \
190         fi
192 .PHONY: check_markup
193 check_DATA = check_markup
194 check_markup:
195         perl $(srcdir)/po/check-markup $(srcdir)/po/*.po || [ $$? = 127 ]
196 #       # `make check' probably shouldn't require perl to be installed, hence ignoring 127.
198 distcheck-hook:
199         perl $(srcdir)/po/check-markup $(srcdir)/po/*.po
201 test-check-markup:
202         if perl -e 42; then \
203           perl $(srcdir)/po/check-markup $(srcdir)/po/bad.po.test 2>&1  \
204             | diff $(srcdir)/po/bad.po.test.exp -;      \
205         fi