Makefile.am revision b359e94753712431fc7396408657e1716faec164
## Process this file with automake to produce Makefile.in
AUTOMAKE_OPTIONS = foreign
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
SUBDIRS = src doc share po
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)
DISTCHECK_CONFIGURE_FLAGS = --enable-localinstall
man_MANS = \
inkscape.1 \
inkview.1
EXTRA_DIST = \
fix-roff-punct \
$(Graphics_in_files) \
utf8-to-roff \
inkscape.1 \
README README.ca.txt README.de.txt README.es.txt README.fr.txt README.it.txt README.osx.txt README.pt_BR.txt README.sk.txt README.sr.txt \
TRANSLATORS \
src/2geom/angle.h \
packaging/macosx/ports/_resources/port1.0/group/python-1.0.tcl \
# 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.el.1 inkscape.fr.1 inkscape.ja.1 inkscape.sk.1 inkscape.zh_TW.1 : fix-roff-punct Makefile.am AUTHORS
.pod.1:
set -e; \
d=`sed -n 's,/,-,g;s,.*\$$[D]ate: \(..........\).*,\1,p' $<`; \
pod2man --utf8 $< \
| 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 \
> tmp.$$$$ \
&& mv -f tmp.$$$$ $@
# ut8-to-roff removed (groff now supports utf8).
# | perl -CI $(srcdir)/utf8-to-roff \
# 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)
manel_DATA = inkscape.el.1
maneldir = $(mandir)/el/man1
manfr_DATA = inkscape.fr.1
manfrdir = $(mandir)/fr/man1
manja_DATA = inkscape.ja.1
manjadir = $(mandir)/ja/man1
mansk_DATA = inkscape.ja.1
manskdir = $(mandir)/sk/man1
manzhtw_DATA = inkscape.zh_TW.1
manzhtwdir = $(mandir)/zh_TW/man1
#.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