[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-cppi] [PATCH 15/19] build: don't depend on help2man when building f
From: |
Jim Meyering |
Subject: |
[bug-cppi] [PATCH 15/19] build: don't depend on help2man when building from dist tarball |
Date: |
Wed, 25 Jan 2012 09:22:52 +0100 |
From: Jim Meyering <address@hidden>
* Makefile.am (do-not-require-help2man): New rule.
(dist-hook): Depend on it.
---
Makefile.am | 15 ++++++++++++++-
1 files changed, 14 insertions(+), 1 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index 0cb7c07..af628ec 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -9,9 +9,22 @@ EXTRA_DIST = cfg.mk maint.mk .prev-version .version
dist-check.mk
# Arrange so that .tarball-version appears only in the distribution
# tarball, and never in a checked-out repository.
-dist-hook: gen-ChangeLog
+dist-hook: gen-ChangeLog do-not-require-help2man
echo $(VERSION) > $(distdir)/.tarball-version
+# By default (i.e., with initial timestamps), do not run help2man when
+# building from a distribution tarball. Normally, cppi.1 must depend
+# on src/cppi, but when building from a distribution tarball, we don't
+# want that, to avoid depending on help2man then. Here is the offending
+# dependency:
+# man/cppi.1: $(common_dep) $(srcdir)/man/cppi.x src/cppi
+# The trick is simply to s,src/cppi,src/cppi.c/ in the $(distdir)
+# we're about to tar and compress.
+.PHONY: do-not-require-help2man
+do-not-require-help2man:
+ perl -pi -e 's,^(man/cppi\.1:.*src/cppi)$$,$$1.c,' \
+ $(distdir)/Makefile.in
+
gen_start_date = 2008-01-03
.PHONY: gen-ChangeLog
gen-ChangeLog:
--
1.7.9.rc2.2.g183d6
- [bug-cppi] [PATCH 10/19] maint: update init.sh from gnulib, (continued)
- [bug-cppi] [PATCH 10/19] maint: update init.sh from gnulib, Jim Meyering, 2012/01/25
- [bug-cppi] [PATCH 11/19] maint: remove redundant build output, Jim Meyering, 2012/01/25
- [bug-cppi] [PATCH 05/19] build: don't recurse into man/ when building, Jim Meyering, 2012/01/25
- [bug-cppi] [PATCH 07/19] build: don't recurse into tests/ when building, Jim Meyering, 2012/01/25
- [bug-cppi] [PATCH 12/19] maint: use gnulib's getopt-gnu, not the deprecated getopt module, Jim Meyering, 2012/01/25
- [bug-cppi] [PATCH 13/19] maint: tweak m4 quoting in AC_CONFIG_FILES, Jim Meyering, 2012/01/25
- [bug-cppi] [PATCH 06/19] tests: add the help-version test, Jim Meyering, 2012/01/25
- [bug-cppi] [PATCH 14/19] build: part two of using subdir-objects: handle e.g., GETOPT_H, Jim Meyering, 2012/01/25
- [bug-cppi] [PATCH 17/19] version 1.16, Jim Meyering, 2012/01/25
- [bug-cppi] [PATCH 18/19] maint: post-release administrivia, Jim Meyering, 2012/01/25
- [bug-cppi] [PATCH 15/19] build: don't depend on help2man when building from dist tarball,
Jim Meyering <=
- [bug-cppi] [PATCH 16/19] doc: NEWS: mention our non-recursive make scheme, Jim Meyering, 2012/01/25
- [bug-cppi] [PATCH 19/19] build: don't require /usr/bin/perl, Jim Meyering, 2012/01/25