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