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
41 build-aux/manconv.sh \
44 ACLOCAL_AMFLAGS = -I m4
46 # List of man pages to conver to PDF and plain text in the dist-hook target.
50 src/lzmainfo/lzmainfo.1 \
51 src/scripts/xzdiff.1 \
52 src/scripts/xzgrep.1 \
53 src/scripts/xzless.1 \
56 # Create ChangeLog from output of "git log --date=iso --stat".
57 # Convert the man pages to PDF and plain text (ASCII only) formats.
59 if test -d "$(srcdir)/.git" && type git > /dev/null 2>&1; then \
60 ( cd "$(srcdir)" && git log --date=iso --stat ) \
61 > "$(distdir)/ChangeLog"; \
63 if type groff > /dev/null 2>&1 && type ps2pdf > /dev/null 2>&1; then \
64 dest="$(distdir)/doc/man" && \
65 $(MKDIR_P) "$$dest/pdf-a4" "$$dest/pdf-letter" "$$dest/txt" && \
66 for FILE in $(manfiles); do \
67 BASE=`basename $$FILE .1` && \
68 sh "$(srcdir)/build-aux/manconv.sh" pdf a4 \
69 < "$(srcdir)/$$FILE" \
70 > "$$dest/pdf-a4/$$BASE-a4.pdf" && \
71 sh "$(srcdir)/build-aux/manconv.sh" pdf letter \
72 < "$(srcdir)/$$FILE" \
73 > "$$dest/pdf-letter/$$BASE-letter.pdf" && \
74 sh "$(srcdir)/build-aux/manconv.sh" ascii \
75 < "$(srcdir)/$$FILE" \
76 > "$$dest/txt/$$BASE.txt"; \
80 # This works with GNU tar and gives cleaner package than normal 'make dist'.
83 if test -d "$(srcdir)/.git" && type git > /dev/null 2>&1; then \
84 SNAPSHOT=`cd "$(srcdir)" && git describe --abbrev=4 | cut -b2-`; \
85 test -n "$$SNAPSHOT" && VERSION=$$SNAPSHOT; \
87 TAR_OPTIONS='--owner=0 --group=0 --numeric-owner --mode=u+rw,go+r-w' \
88 $(MAKE) VERSION="$$VERSION" dist-gzip