2024-02-12 15:09:10 +00:00
|
|
|
## SPDX-License-Identifier: 0BSD
|
2009-04-13 08:27:40 +00:00
|
|
|
## Author: Lasse Collin
|
2007-12-08 22:42:33 +00:00
|
|
|
|
2011-05-23 15:30:30 +00:00
|
|
|
# Use -n to prevent gzip from adding a timestamp to the .gz headers.
|
|
|
|
GZIP_ENV = -9n
|
|
|
|
|
2008-01-18 18:18:08 +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
|
|
|
|
|
2014-04-25 14:44:26 +00:00
|
|
|
if COND_DOC
|
2009-08-27 15:36:59 +00:00
|
|
|
dist_doc_DATA = \
|
2009-07-19 10:14:20 +00:00
|
|
|
AUTHORS \
|
|
|
|
COPYING \
|
2024-02-14 17:15:58 +00:00
|
|
|
COPYING.0BSD \
|
2009-07-19 10:14:20 +00:00
|
|
|
COPYING.GPLv2 \
|
|
|
|
NEWS \
|
|
|
|
README \
|
|
|
|
THANKS \
|
2009-08-17 21:30:09 +00:00
|
|
|
doc/faq.txt \
|
2009-07-24 10:15:06 +00:00
|
|
|
doc/history.txt \
|
2009-07-19 10:14:20 +00:00
|
|
|
doc/xz-file-format.txt \
|
|
|
|
doc/lzma-file-format.txt
|
|
|
|
|
2010-10-26 12:48:48 +00:00
|
|
|
examplesdir = $(docdir)/examples
|
|
|
|
dist_examples_DATA = \
|
2012-06-14 17:15:30 +00:00
|
|
|
doc/examples/00_README.txt \
|
|
|
|
doc/examples/01_compress_easy.c \
|
|
|
|
doc/examples/02_decompress.c \
|
|
|
|
doc/examples/03_compress_custom.c \
|
2014-12-21 16:01:45 +00:00
|
|
|
doc/examples/04_compress_easy_mt.c \
|
2024-02-14 17:11:48 +00:00
|
|
|
doc/examples/11_file_info.c \
|
2012-06-14 17:15:30 +00:00
|
|
|
doc/examples/Makefile
|
2014-04-25 14:44:26 +00:00
|
|
|
endif
|
2010-10-26 12:48:48 +00:00
|
|
|
|
2007-12-08 22:42:33 +00:00
|
|
|
EXTRA_DIST = \
|
2024-02-17 17:35:47 +00:00
|
|
|
cmake \
|
2009-08-27 12:34:45 +00:00
|
|
|
dos \
|
2023-03-16 13:34:36 +00:00
|
|
|
doxygen \
|
2024-02-17 17:35:47 +00:00
|
|
|
extra \
|
|
|
|
po4a \
|
2009-02-05 19:21:27 +00:00
|
|
|
windows \
|
2022-08-18 14:49:16 +00:00
|
|
|
CMakeLists.txt \
|
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 \
|
2024-02-17 17:25:05 +00:00
|
|
|
TODO \
|
2024-02-17 17:35:47 +00:00
|
|
|
autogen.sh \
|
2010-09-28 08:40:12 +00:00
|
|
|
build-aux/manconv.sh \
|
2024-02-17 17:35:47 +00:00
|
|
|
build-aux/version.sh \
|
|
|
|
po/xz.pot-header
|
2007-12-08 22:42:33 +00:00
|
|
|
|
|
|
|
ACLOCAL_AMFLAGS = -I m4
|
2008-04-25 10:32:35 +00:00
|
|
|
|
2024-04-19 11:10:39 +00:00
|
|
|
# List of man pages to convert to plain text in the dist-hook target
|
|
|
|
# or to PDF in the pdf-local target.
|
2009-07-12 16:08:30 +00:00
|
|
|
manfiles = \
|
2009-08-13 06:37:21 +00:00
|
|
|
src/xz/xz.1 \
|
2009-07-12 16:08:30 +00:00
|
|
|
src/xzdec/xzdec.1 \
|
2010-01-29 11:24:27 +00:00
|
|
|
src/lzmainfo/lzmainfo.1 \
|
2009-07-12 16:08:30 +00: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".
|
2024-04-19 11:10:39 +00:00
|
|
|
# Convert the man pages to plain text (ASCII only) format.
|
2009-07-12 16:08:30 +00:00
|
|
|
dist-hook:
|
2009-08-27 15:36:59 +00:00
|
|
|
if test -d "$(srcdir)/.git" && type git > /dev/null 2>&1; then \
|
2017-04-24 16:48:47 +00:00
|
|
|
( cd "$(srcdir)" && git log --date=iso --stat \
|
2024-02-14 17:38:34 +00:00
|
|
|
b69da6d4bb6bb11fc0cf066920791990d2b22a06^..HEAD ) \
|
2009-08-27 15:36:59 +00:00
|
|
|
> "$(distdir)/ChangeLog"; \
|
|
|
|
fi
|
2024-04-19 11:10:39 +00:00
|
|
|
if type groff > /dev/null 2>&1; then \
|
2009-07-12 16:08:30 +00:00
|
|
|
dest="$(distdir)/doc/man" && \
|
2024-04-19 11:10:39 +00:00
|
|
|
$(MKDIR_P) "$$dest/txt" && \
|
2009-07-12 16:08:30 +00:00
|
|
|
for FILE in $(manfiles); do \
|
|
|
|
BASE=`basename $$FILE .1` && \
|
2024-05-27 09:22:08 +00:00
|
|
|
$(SHELL) "$(srcdir)/build-aux/manconv.sh" ascii \
|
2010-09-28 08:40:12 +00:00
|
|
|
< "$(srcdir)/$$FILE" \
|
|
|
|
> "$$dest/txt/$$BASE.txt"; \
|
2009-07-12 16:08:30 +00:00
|
|
|
done; \
|
|
|
|
fi
|
|
|
|
|
2008-04-25 10:32:35 +00:00
|
|
|
# This works with GNU tar and gives cleaner package than normal 'make dist'.
|
2020-02-07 13:32:21 +00:00
|
|
|
# This also ensures that the man page translations are up to date (dist-hook
|
|
|
|
# would be too late for that).
|
2008-04-25 10:32:35 +00:00
|
|
|
mydist:
|
2024-05-27 09:22:08 +00:00
|
|
|
$(SHELL) "$(srcdir)/src/liblzma/validate_map.sh"
|
|
|
|
cd "$(srcdir)/po4a" && $(SHELL) update-po
|
2010-10-23 14:25:52 +00:00
|
|
|
VERSION=$(VERSION); \
|
2010-06-11 07:40:28 +00: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 10:32:35 +00:00
|
|
|
TAR_OPTIONS='--owner=0 --group=0 --numeric-owner --mode=u+rw,go+r-w' \
|
2010-06-11 07:40:28 +00:00
|
|
|
$(MAKE) VERSION="$$VERSION" dist-gzip
|
2024-04-19 11:10:39 +00:00
|
|
|
|
|
|
|
# NOTE: This only creates the PDFs. The install rules are missing.
|
|
|
|
pdf-local:
|
|
|
|
dest="doc/man" && \
|
|
|
|
$(MKDIR_P) "$$dest/pdf-a4" "$$dest/pdf-letter" && \
|
|
|
|
for FILE in $(manfiles); do \
|
|
|
|
BASE=`basename $$FILE .1` && \
|
2024-05-27 09:22:08 +00:00
|
|
|
$(SHELL) "$(srcdir)/build-aux/manconv.sh" pdf a4 \
|
2024-04-19 11:10:39 +00:00
|
|
|
< "$(srcdir)/$$FILE" \
|
|
|
|
> "$$dest/pdf-a4/$$BASE-a4.pdf" && \
|
2024-05-27 09:22:08 +00:00
|
|
|
$(SHELL) "$(srcdir)/build-aux/manconv.sh" pdf letter \
|
2024-04-19 11:10:39 +00:00
|
|
|
< "$(srcdir)/$$FILE" \
|
|
|
|
> "$$dest/pdf-letter/$$BASE-letter.pdf"; \
|
|
|
|
done
|