diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2010-10-08 15:25:45 +0300 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2010-10-08 15:25:45 +0300 |
commit | b1c7368f95e93ccdefdd0748e04398c26766f47f (patch) | |
tree | fbba0f79912d7d009776a1b7e89b746677fbd8df /src/xz | |
parent | Windows: Make build.bash work without --enable-dynamic=no. (diff) | |
download | xz-b1c7368f95e93ccdefdd0748e04398c26766f47f.tar.xz |
Build: Add options to disable individual command line tools.
Diffstat (limited to '')
-rw-r--r-- | src/xz/Makefile.am | 6 | ||||
-rw-r--r-- | src/xzdec/Makefile.am | 12 |
2 files changed, 15 insertions, 3 deletions
diff --git a/src/xz/Makefile.am b/src/xz/Makefile.am index e4ed59cf..10ceee75 100644 --- a/src/xz/Makefile.am +++ b/src/xz/Makefile.am @@ -69,7 +69,11 @@ dist_man_MANS = xz.1 ## Create symlinks for unxz and xzcat for convenience. Create symlinks also ## for lzma, unlzma, and lzcat for compatibility with LZMA Utils 4.32.x. -xzlinks = unxz xzcat lzma unlzma lzcat +xzlinks = unxz xzcat + +if COND_LZMALINKS +xzlinks += lzma unlzma lzcat +endif install-exec-hook: cd $(DESTDIR)$(bindir) && \ diff --git a/src/xzdec/Makefile.am b/src/xzdec/Makefile.am index c31a30a7..2348e4e6 100644 --- a/src/xzdec/Makefile.am +++ b/src/xzdec/Makefile.am @@ -12,8 +12,6 @@ $(xzdec_CPPFLAGS) $(CPPFLAGS) $(RCFLAGS) -i $< -o $@ -bin_PROGRAMS = xzdec lzmadec - xzdec_SOURCES = \ xzdec.c \ $(top_srcdir)/src/common/tuklib_progname.c \ @@ -51,8 +49,17 @@ lzmadec_LDFLAGS = $(xzdec_LDFLAGS) lzmadec_LDADD = $(xzdec_LDADD) +bin_PROGRAMS = + +if COND_XZDEC +bin_PROGRAMS += xzdec dist_man_MANS = xzdec.1 +endif +if COND_LZMADEC +bin_PROGRAMS += lzmadec + +# FIXME: If xzdec is disabled, this will create a dangling symlink. install-data-hook: cd $(DESTDIR)$(mandir)/man1 && \ target=`echo xzdec | sed '$(transform)'` && \ @@ -64,3 +71,4 @@ uninstall-hook: cd $(DESTDIR)$(mandir)/man1 && \ link=`echo lzmadec | sed '$(transform)'` && \ rm -f $$link.1 +endif |