aboutsummaryrefslogtreecommitdiff
path: root/src/clients/cave/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'src/clients/cave/Makefile.am')
-rw-r--r--src/clients/cave/Makefile.am29
1 files changed, 17 insertions, 12 deletions
diff --git a/src/clients/cave/Makefile.am b/src/clients/cave/Makefile.am
index 4598e2a4f..a96e56309 100644
--- a/src/clients/cave/Makefile.am
+++ b/src/clients/cave/Makefile.am
@@ -15,8 +15,6 @@ SUBDIRS = .
bin_PROGRAMS = cave
-noinst_PROGRAMS = man-cave
-
# When adding commands, you need to add to both command_MANS and
# libcave_a_SOURCES. You should also update command_factory.cc,
# doc/clients/Makefile.am and .gitignore.
@@ -93,6 +91,11 @@ command_MANS_html_man_fragments = $(command_MANS_txts:.txt=.html-man-fragment)
SUFFIXES = .1 .txt .xml .html-man-fragment
+if USE_PREBUILT_DOCUMENTATION
+else
+
+noinst_PROGRAMS = man-cave
+
$(command_MANS_txts) : man-cave
if ! env \
CAVE_FORMATS_CONF="/dev/null" \
@@ -114,27 +117,29 @@ $(command_MANS_txts) : man-cave
$@-dir/index.html > $@
rm -fr $@-dir
-cave_SOURCES = \
- cave.cc
+man_cave_SOURCES = \
+ man_cave.cc
-cave_LDADD = \
+man_cave_LDADD = \
libcave.a \
$(top_builddir)/paludis/libpaludis_@PALUDIS_PC_SLOT@.la \
$(top_builddir)/paludis/args/libpaludisargs_@PALUDIS_PC_SLOT@.la \
$(top_builddir)/paludis/util/libpaludisutil_@PALUDIS_PC_SLOT@.la \
- $(top_builddir)/paludis/resolver/libpaludisresolver.a \
- $(top_builddir)/src/output/liboutput.a \
- $(DYNAMIC_LD_LIBS)
+ $(top_builddir)/paludis/resolver/libpaludisresolver.a
-man_cave_SOURCES = \
- man_cave.cc
+endif
-man_cave_LDADD = \
+cave_SOURCES = \
+ cave.cc
+
+cave_LDADD = \
libcave.a \
$(top_builddir)/paludis/libpaludis_@PALUDIS_PC_SLOT@.la \
$(top_builddir)/paludis/args/libpaludisargs_@PALUDIS_PC_SLOT@.la \
$(top_builddir)/paludis/util/libpaludisutil_@PALUDIS_PC_SLOT@.la \
- $(top_builddir)/paludis/resolver/libpaludisresolver.a
+ $(top_builddir)/paludis/resolver/libpaludisresolver.a \
+ $(top_builddir)/src/output/liboutput.a \
+ $(DYNAMIC_LD_LIBS)
noinst_LIBRARIES = libcave.a