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 DIST_SUBDIRS = lib src po tests debug
15 SUBDIRS += src po tests
27 doc/xz-file-format.txt \
28 doc/lzma-file-format.txt
40 ACLOCAL_AMFLAGS = -I m4
42 # List of man pages to conver to PDF and plain text in the dist-hook target.
46 src/scripts/xzdiff.1 \
47 src/scripts/xzgrep.1 \
48 src/scripts/xzless.1 \
51 # Create ChangeLog from output of "git log --date=iso --stat".
52 # Convert the man pages to PDF and plain text (ASCII only) formats.
54 test -d "$(srcdir)/.git" && type git > /dev/null 2>&1 \
55 && ( cd "$(srcdir)" && git log --date=iso --stat ) \
56 > "$(distdir)/ChangeLog"
57 if type groff > /dev/null 2>&1 && type ps2pdf > /dev/null 2>&1; then \
58 dest="$(distdir)/doc/man" && \
60 mkdir "$$dest/pdf-a4" "$$dest/pdf-letter" "$$dest/txt" && \
61 for FILE in $(manfiles); do \
62 BASE=`basename $$FILE .1` && \
63 groff -man -t -Tps -P-pa4 < "$(srcdir)/$$FILE" \
65 > "$$dest/pdf-a4/$$BASE-a4.pdf" && \
66 groff -man -t -Tps -P-pletter < "$(srcdir)/$$FILE" \
68 > "$$dest/pdf-letter/$$BASE-letter.pdf" && \
69 groff -man -t -Tascii < "$(srcdir)/$$FILE" \
70 | col -bx > "$$dest/txt/$$BASE.txt"; \
74 # This works with GNU tar and gives cleaner package than normal 'make dist'.
76 TAR_OPTIONS='--owner=0 --group=0 --numeric-owner --mode=u+rw,go+r-w' \