xz/Makefile.am

89 lines
2.2 KiB
Makefile
Raw Normal View History

2007-12-08 22:42:33 +00:00
##
## Author: Lasse Collin
2007-12-08 22:42:33 +00:00
##
## This file has been put into the public domain.
## You can do whatever you want with this file.
2007-12-08 22:42:33 +00:00
##
DIST_SUBDIRS = lib src po tests debug
2007-12-08 22:42:33 +00:00
SUBDIRS =
if COND_GNULIB
SUBDIRS += lib
endif
SUBDIRS += src po tests
2009-08-27 15:36:59 +00:00
dist_doc_DATA = \
AUTHORS \
COPYING \
COPYING.GPLv2 \
NEWS \
README \
THANKS \
TODO \
2009-08-17 21:30:09 +00:00
doc/faq.txt \
2009-07-24 10:15:06 +00:00
doc/history.txt \
doc/xz-file-format.txt \
doc/lzma-file-format.txt
2007-12-08 22:42:33 +00:00
EXTRA_DIST = \
2009-08-27 13:36:40 +00:00
extra \
2009-08-27 12:34:45 +00:00
dos \
windows \
2009-08-27 13:36:40 +00:00
autogen.sh \
Doxyfile.in \
2007-12-08 22:42:33 +00:00
COPYING.GPLv2 \
COPYING.GPLv3 \
2009-08-27 13:36:40 +00:00
COPYING.LGPLv2.1 \
INSTALL.generic \
2010-09-28 07:59:53 +00:00
PACKAGERS \
build-aux/manconv.sh \
2010-09-28 07:59:53 +00:00
build-aux/version.sh
2007-12-08 22:42:33 +00:00
ACLOCAL_AMFLAGS = -I m4
# List of man pages to conver to PDF and plain text in the dist-hook target.
manfiles = \
src/xz/xz.1 \
src/xzdec/xzdec.1 \
src/lzmainfo/lzmainfo.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:
2009-08-27 15:36:59 +00:00
if test -d "$(srcdir)/.git" && type git > /dev/null 2>&1; then \
( cd "$(srcdir)" && git log --date=iso --stat ) \
> "$(distdir)/ChangeLog"; \
fi
if type groff > /dev/null 2>&1 && type ps2pdf > /dev/null 2>&1; then \
dest="$(distdir)/doc/man" && \
2009-08-27 15:36:59 +00:00
$(MKDIR_P) "$$dest/pdf-a4" "$$dest/pdf-letter" "$$dest/txt" && \
for FILE in $(manfiles); do \
BASE=`basename $$FILE .1` && \
sh "$(srcdir)/build-aux/manconv.sh" pdf a4 \
< "$(srcdir)/$$FILE" \
> "$$dest/pdf-a4/$$BASE-a4.pdf" && \
sh "$(srcdir)/build-aux/manconv.sh" pdf letter \
< "$(srcdir)/$$FILE" \
> "$$dest/pdf-letter/$$BASE-letter.pdf" && \
sh "$(srcdir)/build-aux/manconv.sh" ascii \
< "$(srcdir)/$$FILE" \
> "$$dest/txt/$$BASE.txt"; \
done; \
fi
# This works with GNU tar and gives cleaner package than normal 'make dist'.
mydist:
VERSION=$(VERSION); \
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; \
TAR_OPTIONS='--owner=0 --group=0 --numeric-owner --mode=u+rw,go+r-w' \
$(MAKE) VERSION="$$VERSION" dist-gzip