[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: GNU Parallel Bug Reports Inconsistencies in src/Makefile.am
From: |
Michele Orru` |
Subject: |
Re: GNU Parallel Bug Reports Inconsistencies in src/Makefile.am |
Date: |
Fri, 13 Jun 2014 17:53:34 +0200 |
User-agent: |
Notmuch/0.18 (http://notmuchmail.org) Emacs/24.3.1 (x86_64-pc-linux-gnu) |
Ole Tange <address@hidden> writes:
> I would love if automake supplied --disable-documentation, so if you
> can provide a patch that does this, and which does not break anything
> else, I will be very interested.
What about this patch?
>From 252f387aca96b09f5403554c1fe9d27fa400d96c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Michele=20Orr=C3=B9?= <address@hidden>
Date: Fri, 13 Jun 2014 17:45:37 +0200
Subject: [PATCH] Add `--disable-documentation`.
Provide `--disable-documentation` as configure option to omit building and
installing documentation files.
---
configure.ac | 7 +++++++
src/Makefile.am | 3 +++
2 files changed, 10 insertions(+)
diff --git a/configure.ac b/configure.ac
index cd1c82d..526cb31 100644
--- a/configure.ac
+++ b/configure.ac
@@ -5,4 +5,11 @@ AC_CONFIG_FILES([
Makefile
src/Makefile
])
+
+AC_ARG_ENABLE(documentation,
+ AC_HELP_STRING([--disable-documentation],
+ [Omit building and installing the documentation.
(default=no)]),,
+ [enable_documentation=yes])
+AM_CONDITIONAL([DOCUMENTATION], [test x$enable_documentation = xyes])
+
AC_OUTPUT
diff --git a/src/Makefile.am b/src/Makefile.am
index bb1f373..c91c2f3 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,6 +1,9 @@
bin_SCRIPTS = parallel sem sql niceload
+
+if DOCUMENTATION
man_MANS = parallel.1 sem.1 sql.1 niceload.1 parallel_tutorial.1
doc_DATA = parallel.html sem.html sql.html niceload.html
parallel_tutorial.html parallel.texi sem.texi sql.texi niceload.texi
parallel_tutorial.texi parallel.pdf sem.pdf sql.pdf niceload.pdf
parallel_tutorial.pdf
+endif
# Build documentation file if the tool to build exists.
# Otherwise: Use the distributed version
--
2.0.0
--
m.