aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2009-08-27 18:36:59 +0300
committerLasse Collin <lasse.collin@tukaani.org>2009-08-27 18:36:59 +0300
commit682efdc1f9492fdd76c9ce82e7c00ca0768067e8 (patch)
treec362210f9d3618c5d9afd9403c323905ac6dd857
parentUpdate xz man page date. (diff)
downloadxz-682efdc1f9492fdd76c9ce82e7c00ca0768067e8.tar.xz
"make dist" fixeslarhzu/v4.999.9beta
-rw-r--r--Makefile.am13
1 files changed, 6 insertions, 7 deletions
diff --git a/Makefile.am b/Makefile.am
index 678d9eb3..79cf1954 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -14,7 +14,7 @@ endif
SUBDIRS += src po tests
-doc_DATA = \
+dist_doc_DATA = \
AUTHORS \
COPYING \
COPYING.GPLv2 \
@@ -28,7 +28,6 @@ doc_DATA = \
doc/lzma-file-format.txt
EXTRA_DIST = \
- doc \
extra \
dos \
windows \
@@ -55,13 +54,13 @@ manfiles = \
# 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 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" && \
- mkdir "$$dest" && \
- mkdir "$$dest/pdf-a4" "$$dest/pdf-letter" "$$dest/txt" && \
+ $(MKDIR_P) "$$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" \