Makefile.am revision 8ec8d5d0c82b02919f1fbadee701997eb5d76e5e
## Process this file with automake to produce Makefile.in
AUTOMAKE_OPTIONS = foreign
SUBDIRS = src doc share po
appicondir = $(datadir)/pixmaps
appicon_DATA = inkscape.png
Graphicsdir = $(datadir)/applications
Graphics_in_files = inkscape.desktop.in
Graphics_DATA = $(Graphics_in_files:.desktop.in=.desktop)
@INTLTOOL_DESKTOP_RULE@
## dist-hook:
## mkdir $(distdir)/samples
## cp $(srcdir)/samples/*svg $(distdir)/samples
## cp $(srcdir)/samples/*png $(distdir)/samples
## cp $(srcdir)/AUTHORS $(distdir)
## cp $(srcdir)/NEWS $(distdir)
man_MANS = inkscape.1 \
inkview.1
EXTRA_DIST = \
fix-roff-punct \
mkinstalldirs \
$(Graphics_in_files) \
utf8-to-roff \
inkscape.1 \
TRANSLATORS \
src/2geom/angle.h \
packaging/macosx/Resources/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/Scrollbars_1/slider-horiz.png \
packaging/macosx/Resources/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/Scrollbars_6/slider-horiz.png \
# We want the built inkscape.1 to go in the distributed .tar.gz so
# that .tar.gz users don't need a full perl distribution to get a man
# page.
DISTCLEANFILES = inkscape.desktop \
intltool-extract \
intltool-merge \
intltool-update
#ACLOCAL_AMFLAGS = -I m4
SUFFIXES = .pod .1
inkscape.1 inkscape.fr.1: fix-roff-punct Makefile.am AUTHORS utf8-to-roff
.pod.1:
set -e; \
d=`sed -n 's,/,-,g;s,.*\$$[D]ate: \(..........\).*,\1,p' $<`; \
pod2man $< \
| sed 's/^\.TH .*/.TH INKSCAPE 1 "'"$$d"'" "Inkscape-$(VERSION)" "Inkscape"/' \
| perl -pe 'if (/^\[\% .*INCLUDE.*AUTHORS.* \%\]/) { open(FOO, "$(srcdir)/AUTHORS");$$_ = join(",\n", map { chomp; $$_ } <FOO>) . "\n"; }' \
| perl $(srcdir)/fix-roff-punct \
| perl -CI $(srcdir)/utf8-to-roff \
> tmp.$$$$ \
&& mv -f tmp.$$$$ $@
# man 7 groff_char for further remarks on charset encoding for man pages.
(cd $(srcdir)/po ; intltool-update --pot --output-file=$(distdir)/po/inkscape.pot)
install-data-local: inkscape.fr.1
$(mkinstalldirs) $(DESTDIR)$(mandir)/fr/man1
$(INSTALL_DATA) `if [ -f inkscape.fr.1 ]; then :; else echo $(srcdir)/;fi`inkscape.fr.1 $(DESTDIR)$(mandir)/fr/man1/inkscape.1
.PHONY: warn_markup
noinst_DATA = warn_markup
warn_markup:
@if perl $(srcdir)/po/check-markup $(srcdir)/po/*.po; [ $$? = 1 ]; then \
echo "WARNING: Bad markup found in translations. Please consider fixing the above problems." >&2; \
fi
.PHONY: check_markup
check_DATA = check_markup
check_markup:
perl $(srcdir)/po/check-markup $(srcdir)/po/*.po || [ $$? = 127 ]
# # `make check' probably shouldn't require perl to be installed, hence ignoring 127.
distcheck-hook:
perl $(srcdir)/po/check-markup $(srcdir)/po/*.po
test-check-markup:
if perl -e 42; then \
perl $(srcdir)/po/check-markup $(srcdir)/po/bad.po.test 2>&1 \
| diff $(srcdir)/po/bad.po.test.exp -; \
fi