aboutsummaryrefslogtreecommitdiff
path: root/src/xzdec/Makefile.am
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2010-10-08 15:25:45 +0300
committerLasse Collin <lasse.collin@tukaani.org>2010-10-08 15:25:45 +0300
commitb1c7368f95e93ccdefdd0748e04398c26766f47f (patch)
treefbba0f79912d7d009776a1b7e89b746677fbd8df /src/xzdec/Makefile.am
parentWindows: Make build.bash work without --enable-dynamic=no. (diff)
downloadxz-b1c7368f95e93ccdefdd0748e04398c26766f47f.tar.xz
Build: Add options to disable individual command line tools.
Diffstat (limited to 'src/xzdec/Makefile.am')
-rw-r--r--src/xzdec/Makefile.am12
1 files changed, 10 insertions, 2 deletions
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