2 ## Author: Lasse Collin
4 ## This file has been put into the public domain.
5 ## You can do whatever you want with this file.
8 # Use -n to prevent gzip from adding a timestamp to the .gz headers.
11 DIST_SUBDIRS = lib src po tests debug
18 SUBDIRS += src po tests
31 doc/xz-file-format.txt \
32 doc/lzma-file-format.txt
34 examplesdir = $(docdir)/examples
35 dist_examples_DATA = \
36 doc/examples/00_README.txt \
37 doc/examples/01_compress_easy.c \
38 doc/examples/02_decompress.c \
39 doc/examples/03_compress_custom.c \
40 doc/examples/04_compress_easy_mt.c \
43 examplesolddir = $(docdir)/examples_old
44 dist_examplesold_DATA = \
45 doc/examples_old/xz_pipe_comp.c \
46 doc/examples_old/xz_pipe_decomp.c
61 build-aux/manconv.sh \
64 ACLOCAL_AMFLAGS = -I m4
66 # List of man pages to conver to PDF and plain text in the dist-hook target.
70 src/lzmainfo/lzmainfo.1 \
71 src/scripts/xzdiff.1 \
72 src/scripts/xzgrep.1 \
73 src/scripts/xzless.1 \
76 # Create ChangeLog from output of "git log --date=iso --stat".
77 # Convert the man pages to PDF and plain text (ASCII only) formats.
79 if test -d "$(srcdir)/.git" && type git > /dev/null 2>&1; then \
80 ( cd "$(srcdir)" && git log --date=iso --stat \
81 b667a3ef6338a2c1db7b7706b1f6c99ea392221c^..HEAD ) \
82 > "$(distdir)/ChangeLog"; \
84 if type groff > /dev/null 2>&1 && type ps2pdf > /dev/null 2>&1; then \
85 dest="$(distdir)/doc/man" && \
86 $(MKDIR_P) "$$dest/pdf-a4" "$$dest/pdf-letter" "$$dest/txt" && \
87 for FILE in $(manfiles); do \
88 BASE=`basename $$FILE .1` && \
89 sh "$(srcdir)/build-aux/manconv.sh" pdf a4 \
90 < "$(srcdir)/$$FILE" \
91 > "$$dest/pdf-a4/$$BASE-a4.pdf" && \
92 sh "$(srcdir)/build-aux/manconv.sh" pdf letter \
93 < "$(srcdir)/$$FILE" \
94 > "$$dest/pdf-letter/$$BASE-letter.pdf" && \
95 sh "$(srcdir)/build-aux/manconv.sh" ascii \
96 < "$(srcdir)/$$FILE" \
97 > "$$dest/txt/$$BASE.txt"; \
101 # This works with GNU tar and gives cleaner package than normal 'make dist'.
103 sh "$(srcdir)/src/liblzma/validate_map.sh"
104 VERSION=$(VERSION); \
105 if test -d "$(srcdir)/.git" && type git > /dev/null 2>&1; then \
106 SNAPSHOT=`cd "$(srcdir)" && git describe --abbrev=4 | cut -b2-`; \
107 test -n "$$SNAPSHOT" && VERSION=$$SNAPSHOT; \
109 TAR_OPTIONS='--owner=0 --group=0 --numeric-owner --mode=u+rw,go+r-w' \
110 $(MAKE) VERSION="$$VERSION" dist-gzip