Translations: Fix Czech translation of "sparse file".
[xz/debian.git] / Makefile.am
blob2ce74aa5dee281d8cf16d816d212c21e656d8a1f
1 ##
2 ## Author: Lasse Collin
3 ##
4 ## This file has been put into the public domain.
5 ## You can do whatever you want with this file.
6 ##
8 DIST_SUBDIRS = lib src po tests debug
9 SUBDIRS =
11 if COND_GNULIB
12 SUBDIRS += lib
13 endif
15 SUBDIRS += src po tests
17 dist_doc_DATA = \
18         AUTHORS \
19         COPYING \
20         COPYING.GPLv2 \
21         NEWS \
22         README \
23         THANKS \
24         TODO \
25         doc/faq.txt \
26         doc/history.txt \
27         doc/xz-file-format.txt \
28         doc/lzma-file-format.txt
30 examplesdir = $(docdir)/examples
31 dist_examples_DATA = \
32         doc/examples/xz_pipe_comp.c \
33         doc/examples/xz_pipe_decomp.c
35 EXTRA_DIST = \
36         extra \
37         dos \
38         windows \
39         autogen.sh \
40         Doxyfile.in \
41         COPYING.GPLv2 \
42         COPYING.GPLv3 \
43         COPYING.LGPLv2.1 \
44         INSTALL.generic \
45         PACKAGERS \
46         build-aux/manconv.sh \
47         build-aux/version.sh
49 ACLOCAL_AMFLAGS = -I m4
51 # List of man pages to conver to PDF and plain text in the dist-hook target.
52 manfiles = \
53         src/xz/xz.1 \
54         src/xzdec/xzdec.1 \
55         src/lzmainfo/lzmainfo.1 \
56         src/scripts/xzdiff.1 \
57         src/scripts/xzgrep.1 \
58         src/scripts/xzless.1 \
59         src/scripts/xzmore.1
61 # Create ChangeLog from output of "git log --date=iso --stat".
62 # Convert the man pages to PDF and plain text (ASCII only) formats.
63 dist-hook:
64         if test -d "$(srcdir)/.git" && type git > /dev/null 2>&1; then \
65                 ( cd "$(srcdir)" && git log --date=iso --stat ) \
66                         > "$(distdir)/ChangeLog"; \
67         fi
68         if type groff > /dev/null 2>&1 && type ps2pdf > /dev/null 2>&1; then \
69                 dest="$(distdir)/doc/man" && \
70                 $(MKDIR_P) "$$dest/pdf-a4" "$$dest/pdf-letter" "$$dest/txt" && \
71                 for FILE in $(manfiles); do \
72                         BASE=`basename $$FILE .1` && \
73                         sh "$(srcdir)/build-aux/manconv.sh" pdf a4 \
74                                 < "$(srcdir)/$$FILE" \
75                                 > "$$dest/pdf-a4/$$BASE-a4.pdf" && \
76                         sh "$(srcdir)/build-aux/manconv.sh" pdf letter \
77                                 < "$(srcdir)/$$FILE" \
78                                 > "$$dest/pdf-letter/$$BASE-letter.pdf" && \
79                         sh "$(srcdir)/build-aux/manconv.sh" ascii \
80                                 < "$(srcdir)/$$FILE" \
81                                 > "$$dest/txt/$$BASE.txt"; \
82                 done; \
83         fi
85 # This works with GNU tar and gives cleaner package than normal 'make dist'.
86 mydist:
87         VERSION=$(VERSION); \
88         if test -d "$(srcdir)/.git" && type git > /dev/null 2>&1; then \
89                 SNAPSHOT=`cd "$(srcdir)" && git describe --abbrev=4 | cut -b2-`; \
90                 test -n "$$SNAPSHOT" && VERSION=$$SNAPSHOT; \
91         fi; \
92         TAR_OPTIONS='--owner=0 --group=0 --numeric-owner --mode=u+rw,go+r-w' \
93                 $(MAKE) VERSION="$$VERSION" dist-gzip