]> granicus.if.org Git - xz/commitdiff
Build: Copy the example programs to $docdir/examples.
authorLasse Collin <lasse.collin@tukaani.org>
Tue, 26 Oct 2010 12:48:48 +0000 (15:48 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Tue, 26 Oct 2010 12:48:48 +0000 (15:48 +0300)
The example programs by Daniel Mealha Cabrita were included
in the git repository, but I had forgot to add them to
Makefile.am. Thus, they didn't get included in the source
package at all by "make dist".

Makefile.am
windows/build.bash

index 91c7c0851d21a666e0fcc65c9bb56b6551c75239..2ce74aa5dee281d8cf16d816d212c21e656d8a1f 100644 (file)
@@ -27,6 +27,11 @@ dist_doc_DATA = \
        doc/xz-file-format.txt \
        doc/lzma-file-format.txt
 
+examplesdir = $(docdir)/examples
+dist_examples_DATA = \
+       doc/examples/xz_pipe_comp.c \
+       doc/examples/xz_pipe_decomp.c
+
 EXTRA_DIST = \
        extra \
        dos \
index 40808bc922e338f5d88a0869e3443d233c49c897..faec83b3ede6801c846c1babf9ac711c7110aeb2 100644 (file)
@@ -161,7 +161,7 @@ fi
 
 # Copy the headers, the .def file, and the docs.
 # They are the same for all architectures and builds.
-mkdir -pv pkg/{include/lzma,doc/manuals}
+mkdir -pv pkg/{include/lzma,doc/{manuals,examples}}
 txtcp pkg/include "" src/liblzma/api/lzma.h
 txtcp pkg/include/lzma "" src/liblzma/api/lzma/*.h
 txtcp pkg/doc "" src/liblzma/liblzma.def
@@ -169,6 +169,7 @@ txtcp pkg/doc .txt AUTHORS COPYING NEWS README THANKS TODO
 txtcp pkg/doc "" doc/*.txt windows/README-Windows.txt
 txtcp pkg/doc/manuals "" doc/man/txt/{xz,xzdec,lzmainfo}.txt
 cp -v doc/man/pdf-*/{xz,xzdec,lzmainfo}-*.pdf pkg/doc/manuals
+txtcp pkg/doc/examples "" doc/examples/*
 
 if [ -f windows/COPYING-Windows.txt ]; then
        txtcp pkg/doc "" windows/COPYING-Windows.txt