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
|
|
|
##
|
|
|
|
|
2011-05-23 17:30:30 +02:00
|
|
|
# Use -n to prevent gzip from adding a timestamp to the .gz headers.
|
|
|
|
GZIP_ENV = -9n
|
|
|
|
|
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-08-27 17:36:59 +02:00
|
|
|
dist_doc_DATA = \
|
2009-07-19 12:14:20 +02:00
|
|
|
AUTHORS \
|
|
|
|
COPYING \
|
|
|
|
COPYING.GPLv2 \
|
|
|
|
NEWS \
|
|
|
|
README \
|
|
|
|
THANKS \
|
|
|
|
TODO \
|
2009-08-17 23:30:09 +02:00
|
|
|
doc/faq.txt \
|
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
|
|
|
|
|
2010-10-26 14:48:48 +02:00
|
|
|
examplesdir = $(docdir)/examples
|
|
|
|
dist_examples_DATA = \
|
2012-06-14 19:15:30 +02:00
|
|
|
doc/examples/00_README.txt \
|
|
|
|
doc/examples/01_compress_easy.c \
|
|
|
|
doc/examples/02_decompress.c \
|
|
|
|
doc/examples/03_compress_custom.c \
|
|
|
|
doc/examples/Makefile
|
|
|
|
|
|
|
|
examplesolddir = $(docdir)/examples_old
|
|
|
|
dist_examplesold_DATA = \
|
|
|
|
doc/examples_old/xz_pipe_comp.c \
|
|
|
|
doc/examples_old/xz_pipe_decomp.c
|
2010-10-26 14:48:48 +02:00
|
|
|
|
2007-12-08 23:42:33 +01:00
|
|
|
EXTRA_DIST = \
|
2009-08-27 15:36:40 +02:00
|
|
|
extra \
|
2009-08-27 14:34:45 +02:00
|
|
|
dos \
|
2009-02-05 20:21:27 +01:00
|
|
|
windows \
|
2009-08-27 15:36:40 +02:00
|
|
|
autogen.sh \
|
|
|
|
Doxyfile.in \
|
2007-12-08 23:42:33 +01:00
|
|
|
COPYING.GPLv2 \
|
|
|
|
COPYING.GPLv3 \
|
2009-08-27 15:36:40 +02:00
|
|
|
COPYING.LGPLv2.1 \
|
|
|
|
INSTALL.generic \
|
2010-09-28 09:59:53 +02:00
|
|
|
PACKAGERS \
|
2010-09-28 10:40:12 +02:00
|
|
|
build-aux/manconv.sh \
|
2010-09-28 09:59:53 +02:00
|
|
|
build-aux/version.sh
|
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 = \
|
2009-08-13 08:37:21 +02:00
|
|
|
src/xz/xz.1 \
|
2009-07-12 18:08:30 +02:00
|
|
|
src/xzdec/xzdec.1 \
|
2010-01-29 12:24:27 +01:00
|
|
|
src/lzmainfo/lzmainfo.1 \
|
2009-07-12 18:08:30 +02:00
|
|
|
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:
|
2009-08-27 17:36:59 +02:00
|
|
|
if test -d "$(srcdir)/.git" && type git > /dev/null 2>&1; then \
|
|
|
|
( cd "$(srcdir)" && git log --date=iso --stat ) \
|
|
|
|
> "$(distdir)/ChangeLog"; \
|
|
|
|
fi
|
2009-07-12 18:08:30 +02:00
|
|
|
if type groff > /dev/null 2>&1 && type ps2pdf > /dev/null 2>&1; then \
|
|
|
|
dest="$(distdir)/doc/man" && \
|
2009-08-27 17:36:59 +02:00
|
|
|
$(MKDIR_P) "$$dest/pdf-a4" "$$dest/pdf-letter" "$$dest/txt" && \
|
2009-07-12 18:08:30 +02:00
|
|
|
for FILE in $(manfiles); do \
|
|
|
|
BASE=`basename $$FILE .1` && \
|
2010-09-28 10:40:12 +02:00
|
|
|
sh "$(srcdir)/build-aux/manconv.sh" pdf a4 \
|
|
|
|
< "$(srcdir)/$$FILE" \
|
2009-07-12 18:08:30 +02:00
|
|
|
> "$$dest/pdf-a4/$$BASE-a4.pdf" && \
|
2010-09-28 10:40:12 +02:00
|
|
|
sh "$(srcdir)/build-aux/manconv.sh" pdf letter \
|
|
|
|
< "$(srcdir)/$$FILE" \
|
2009-07-12 18:08:30 +02:00
|
|
|
> "$$dest/pdf-letter/$$BASE-letter.pdf" && \
|
2010-09-28 10:40:12 +02:00
|
|
|
sh "$(srcdir)/build-aux/manconv.sh" ascii \
|
|
|
|
< "$(srcdir)/$$FILE" \
|
|
|
|
> "$$dest/txt/$$BASE.txt"; \
|
2009-07-12 18:08:30 +02:00
|
|
|
done; \
|
|
|
|
fi
|
|
|
|
|
2008-04-25 12:32:35 +02:00
|
|
|
# This works with GNU tar and gives cleaner package than normal 'make dist'.
|
|
|
|
mydist:
|
2011-05-28 14:55:39 +02:00
|
|
|
sh "$(srcdir)/src/liblzma/validate_map.sh"
|
2010-10-23 16:25:52 +02:00
|
|
|
VERSION=$(VERSION); \
|
2010-06-11 09:40:28 +02:00
|
|
|
if test -d "$(srcdir)/.git" && type git > /dev/null 2>&1; then \
|
|
|
|
SNAPSHOT=`cd "$(srcdir)" && git describe --abbrev=4 | cut -b2-`; \
|
|
|
|
test -n "$$SNAPSHOT" && VERSION=$$SNAPSHOT; \
|
|
|
|
fi; \
|
2008-04-25 12:32:35 +02:00
|
|
|
TAR_OPTIONS='--owner=0 --group=0 --numeric-owner --mode=u+rw,go+r-w' \
|
2010-06-11 09:40:28 +02:00
|
|
|
$(MAKE) VERSION="$$VERSION" dist-gzip
|