2007-12-08 23:42:33 +01:00
|
|
|
##
|
2009-04-13 10:27:40 +02:00
|
|
|
## Author: Lasse Collin
|
2007-12-08 23:42:33 +01:00
|
|
|
##
|
2009-04-13 10:27:40 +02:00
|
|
|
## This file has been put into the public domain.
|
|
|
|
## You can do whatever you want with this file.
|
2007-12-08 23:42:33 +01:00
|
|
|
##
|
|
|
|
|
2008-01-18 19:18:08 +01:00
|
|
|
DIST_SUBDIRS = lib src po tests debug
|
2007-12-08 23:42:33 +01:00
|
|
|
SUBDIRS =
|
|
|
|
|
|
|
|
if COND_GNULIB
|
|
|
|
SUBDIRS += lib
|
|
|
|
endif
|
|
|
|
|
|
|
|
SUBDIRS += src po tests
|
|
|
|
|
2009-07-19 12:14:20 +02:00
|
|
|
doc_DATA = \
|
|
|
|
AUTHORS \
|
|
|
|
COPYING \
|
|
|
|
COPYING.GPLv2 \
|
|
|
|
NEWS \
|
|
|
|
README \
|
|
|
|
THANKS \
|
|
|
|
TODO \
|
2009-07-24 12:15:06 +02:00
|
|
|
doc/history.txt \
|
2009-07-19 12:14:20 +02:00
|
|
|
doc/xz-file-format.txt \
|
|
|
|
doc/lzma-file-format.txt
|
|
|
|
|
2007-12-08 23:42:33 +01:00
|
|
|
EXTRA_DIST = \
|
2009-06-26 13:18:32 +02:00
|
|
|
version.sh \
|
2007-12-08 23:42:33 +01:00
|
|
|
Doxyfile.in \
|
2007-12-10 14:02:50 +01:00
|
|
|
extra \
|
|
|
|
doc \
|
2009-02-05 20:21:27 +01:00
|
|
|
windows \
|
2007-12-08 23:42:33 +01:00
|
|
|
COPYING.GPLv2 \
|
|
|
|
COPYING.GPLv3 \
|
2007-12-10 14:02:50 +01:00
|
|
|
COPYING.LGPLv2.1
|
2007-12-08 23:42:33 +01:00
|
|
|
|
|
|
|
ACLOCAL_AMFLAGS = -I m4
|
2008-04-25 12:32:35 +02:00
|
|
|
|
2009-07-12 18:08:30 +02:00
|
|
|
# List of man pages to conver to PDF and plain text in the dist-hook target.
|
|
|
|
manfiles = \
|
|
|
|
src/xzdec/xzdec.1 \
|
|
|
|
src/scripts/xzdiff.1 \
|
|
|
|
src/scripts/xzgrep.1 \
|
|
|
|
src/scripts/xzless.1 \
|
|
|
|
src/scripts/xzmore.1
|
|
|
|
|
|
|
|
# Create ChangeLog from output of "git log --date=iso --stat".
|
|
|
|
# Convert the man pages to PDF and plain text (ASCII only) formats.
|
|
|
|
dist-hook:
|
|
|
|
test -d "$(srcdir)/.git" && type git > /dev/null 2>&1 \
|
|
|
|
&& ( cd "$(srcdir)" && git log --date=iso --stat ) \
|
|
|
|
> "$(distdir)/ChangeLog"
|
|
|
|
if type groff > /dev/null 2>&1 && type ps2pdf > /dev/null 2>&1; then \
|
|
|
|
dest="$(distdir)/doc/man" && \
|
|
|
|
mkdir "$$dest" && \
|
|
|
|
mkdir "$$dest/pdf-a4" "$$dest/pdf-letter" "$$dest/txt" && \
|
|
|
|
for FILE in $(manfiles); do \
|
|
|
|
BASE=`basename $$FILE .1` && \
|
|
|
|
groff -man -t -Tps -P-pa4 < "$(srcdir)/$$FILE" \
|
|
|
|
| ps2pdf - - \
|
|
|
|
> "$$dest/pdf-a4/$$BASE-a4.pdf" && \
|
|
|
|
groff -man -t -Tps -P-pletter < "$(srcdir)/$$FILE" \
|
|
|
|
| ps2pdf - - \
|
|
|
|
> "$$dest/pdf-letter/$$BASE-letter.pdf" && \
|
|
|
|
groff -man -t -Tascii < "$(srcdir)/$$FILE" \
|
|
|
|
| col -bx > "$$dest/txt/$$BASE.txt"; \
|
|
|
|
done; \
|
|
|
|
fi
|
|
|
|
|
2008-04-25 12:32:35 +02:00
|
|
|
# This works with GNU tar and gives cleaner package than normal 'make dist'.
|
|
|
|
mydist:
|
|
|
|
TAR_OPTIONS='--owner=0 --group=0 --numeric-owner --mode=u+rw,go+r-w' \
|
|
|
|
$(MAKE) dist-gzip
|