OLD | NEW |
1 ## | 1 ## |
2 ## Author: Lasse Collin | 2 ## Author: Lasse Collin |
3 ## | 3 ## |
4 ## This file has been put into the public domain. | 4 ## This file has been put into the public domain. |
5 ## You can do whatever you want with this file. | 5 ## You can do whatever you want with this file. |
6 ## | 6 ## |
7 | 7 |
8 DIST_SUBDIRS = lib src po tests debug | 8 DIST_SUBDIRS = lib src po tests debug |
9 SUBDIRS = | 9 SUBDIRS = |
10 | 10 |
11 if COND_GNULIB | 11 if COND_GNULIB |
12 SUBDIRS += lib | 12 SUBDIRS += lib |
13 endif | 13 endif |
14 | 14 |
15 SUBDIRS += src po tests | 15 SUBDIRS += src po tests |
16 | 16 |
17 dist_doc_DATA = \ | 17 dist_doc_DATA = \ |
18 AUTHORS \ | 18 AUTHORS \ |
19 COPYING \ | 19 COPYING \ |
20 COPYING.GPLv2 \ | 20 COPYING.GPLv2 \ |
21 NEWS \ | 21 NEWS \ |
22 README \ | 22 README \ |
23 THANKS \ | 23 THANKS \ |
24 TODO \ | 24 TODO \ |
25 doc/faq.txt \ | 25 doc/faq.txt \ |
26 doc/history.txt \ | 26 doc/history.txt \ |
27 doc/xz-file-format.txt \ | 27 doc/xz-file-format.txt \ |
28 doc/lzma-file-format.txt | 28 doc/lzma-file-format.txt |
29 | 29 |
| 30 examplesdir = $(docdir)/examples |
| 31 dist_examples_DATA = \ |
| 32 doc/examples/xz_pipe_comp.c \ |
| 33 doc/examples/xz_pipe_decomp.c |
| 34 |
30 EXTRA_DIST = \ | 35 EXTRA_DIST = \ |
31 extra \ | 36 extra \ |
32 dos \ | 37 dos \ |
33 windows \ | 38 windows \ |
34 autogen.sh \ | 39 autogen.sh \ |
35 version.sh \ | |
36 Doxyfile.in \ | 40 Doxyfile.in \ |
37 COPYING.GPLv2 \ | 41 COPYING.GPLv2 \ |
38 COPYING.GPLv3 \ | 42 COPYING.GPLv3 \ |
39 COPYING.LGPLv2.1 \ | 43 COPYING.LGPLv2.1 \ |
40 INSTALL.generic \ | 44 INSTALL.generic \ |
41 » PACKAGERS | 45 » PACKAGERS \ |
| 46 » build-aux/manconv.sh \ |
| 47 » build-aux/version.sh |
42 | 48 |
43 ACLOCAL_AMFLAGS = -I m4 | 49 ACLOCAL_AMFLAGS = -I m4 |
44 | 50 |
45 # List of man pages to conver to PDF and plain text in the dist-hook target. | 51 # List of man pages to conver to PDF and plain text in the dist-hook target. |
46 manfiles = \ | 52 manfiles = \ |
47 src/xz/xz.1 \ | 53 src/xz/xz.1 \ |
48 src/xzdec/xzdec.1 \ | 54 src/xzdec/xzdec.1 \ |
49 src/lzmainfo/lzmainfo.1 \ | 55 src/lzmainfo/lzmainfo.1 \ |
50 src/scripts/xzdiff.1 \ | 56 src/scripts/xzdiff.1 \ |
51 src/scripts/xzgrep.1 \ | 57 src/scripts/xzgrep.1 \ |
52 src/scripts/xzless.1 \ | 58 src/scripts/xzless.1 \ |
53 src/scripts/xzmore.1 | 59 src/scripts/xzmore.1 |
54 | 60 |
55 # Create ChangeLog from output of "git log --date=iso --stat". | 61 # Create ChangeLog from output of "git log --date=iso --stat". |
56 # Convert the man pages to PDF and plain text (ASCII only) formats. | 62 # Convert the man pages to PDF and plain text (ASCII only) formats. |
57 dist-hook: | 63 dist-hook: |
58 if test -d "$(srcdir)/.git" && type git > /dev/null 2>&1; then \ | 64 if test -d "$(srcdir)/.git" && type git > /dev/null 2>&1; then \ |
59 ( cd "$(srcdir)" && git log --date=iso --stat ) \ | 65 ( cd "$(srcdir)" && git log --date=iso --stat ) \ |
60 > "$(distdir)/ChangeLog"; \ | 66 > "$(distdir)/ChangeLog"; \ |
61 fi | 67 fi |
62 if type groff > /dev/null 2>&1 && type ps2pdf > /dev/null 2>&1; then \ | 68 if type groff > /dev/null 2>&1 && type ps2pdf > /dev/null 2>&1; then \ |
63 dest="$(distdir)/doc/man" && \ | 69 dest="$(distdir)/doc/man" && \ |
64 $(MKDIR_P) "$$dest/pdf-a4" "$$dest/pdf-letter" "$$dest/txt" && \ | 70 $(MKDIR_P) "$$dest/pdf-a4" "$$dest/pdf-letter" "$$dest/txt" && \ |
65 for FILE in $(manfiles); do \ | 71 for FILE in $(manfiles); do \ |
66 BASE=`basename $$FILE .1` && \ | 72 BASE=`basename $$FILE .1` && \ |
67 » » » groff -man -t -Tps -P-pa4 < "$(srcdir)/$$FILE" \ | 73 » » » sh "$(srcdir)/build-aux/manconv.sh" pdf a4 \ |
68 » » » » | ps2pdf - - \ | 74 » » » » < "$(srcdir)/$$FILE" \ |
69 > "$$dest/pdf-a4/$$BASE-a4.pdf" && \ | 75 > "$$dest/pdf-a4/$$BASE-a4.pdf" && \ |
70 » » » groff -man -t -Tps -P-pletter < "$(srcdir)/$$FILE" \ | 76 » » » sh "$(srcdir)/build-aux/manconv.sh" pdf letter \ |
71 » » » » | ps2pdf - - \ | 77 » » » » < "$(srcdir)/$$FILE" \ |
72 > "$$dest/pdf-letter/$$BASE-letter.pdf" && \ | 78 > "$$dest/pdf-letter/$$BASE-letter.pdf" && \ |
73 » » » groff -man -t -Tascii < "$(srcdir)/$$FILE" \ | 79 » » » sh "$(srcdir)/build-aux/manconv.sh" ascii \ |
74 » » » » | col -bx > "$$dest/txt/$$BASE.txt"; \ | 80 » » » » < "$(srcdir)/$$FILE" \ |
| 81 » » » » > "$$dest/txt/$$BASE.txt"; \ |
75 done; \ | 82 done; \ |
76 fi | 83 fi |
77 | 84 |
78 # This works with GNU tar and gives cleaner package than normal 'make dist'. | 85 # This works with GNU tar and gives cleaner package than normal 'make dist'. |
79 mydist: | 86 mydist: |
| 87 VERSION=$(VERSION); \ |
80 if test -d "$(srcdir)/.git" && type git > /dev/null 2>&1; then \ | 88 if test -d "$(srcdir)/.git" && type git > /dev/null 2>&1; then \ |
81 SNAPSHOT=`cd "$(srcdir)" && git describe --abbrev=4 | cut -b2-`;
\ | 89 SNAPSHOT=`cd "$(srcdir)" && git describe --abbrev=4 | cut -b2-`;
\ |
82 test -n "$$SNAPSHOT" && VERSION=$$SNAPSHOT; \ | 90 test -n "$$SNAPSHOT" && VERSION=$$SNAPSHOT; \ |
83 fi; \ | 91 fi; \ |
84 TAR_OPTIONS='--owner=0 --group=0 --numeric-owner --mode=u+rw,go+r-w' \ | 92 TAR_OPTIONS='--owner=0 --group=0 --numeric-owner --mode=u+rw,go+r-w' \ |
85 $(MAKE) VERSION="$$VERSION" dist-gzip | 93 $(MAKE) VERSION="$$VERSION" dist-gzip |
OLD | NEW |