[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] doc: clean up doc/Makefile.am
From: |
Jim Meyering |
Subject: |
[PATCH] doc: clean up doc/Makefile.am |
Date: |
Mon, 29 Mar 2010 11:28:12 +0200 |
FYI, I noticed commands going by, in spite of my
building with the default V=0, looked at doc/Makefile.am
and found several things to fix/improve:
>From b2cb0dc9b22cff5f0ec03fec723cb5dc9d44ae40 Mon Sep 17 00:00:00 2001
From: Jim Meyering <address@hidden>
Date: Mon, 29 Mar 2010 11:05:38 +0200
Subject: [PATCH] doc: clean up doc/Makefile.am
* doc/Makefile.am (egrep.1 fgrep.1): Generate robustly, i.e.,
do not redirect directly to address@hidden
Use $(AM_V_GEN).
Do not distribute intermediate files like fgrep.man and egrep.man.
Likewise, do not use them to generate their %.1 images.
Instead, generate the .1 files directly.
---
doc/Makefile.am | 13 ++++---------
1 files changed, 4 insertions(+), 9 deletions(-)
diff --git a/doc/Makefile.am b/doc/Makefile.am
index d21a914..b4d0a2d 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -21,14 +21,9 @@ grep_TEXINFOS = fdl.texi
man_MANS = grep.1 fgrep.1 egrep.1
-EXTRA_DIST = grep.1 egrep.man fgrep.man
-
+EXTRA_DIST = grep.1
CLEANFILES = egrep.1 fgrep.1
-fgrep.1: fgrep.man
- inst=`echo "grep" | sed '$(transform)'`.1; \
-sed -e "address@hidden@%$$inst%g" $(srcdir)/fgrep.man > $@
-
-egrep.1: egrep.man
- inst=`echo "grep" | sed '$(transform)'`.1; \
-sed -e "address@hidden@%$$inst%g" $(srcdir)/egrep.man > $@
+egrep.1 fgrep.1: Makefile.am
+ $(AM_V_GEN)inst=`echo grep | sed '$(transform)'`.1 \
+ && echo ".so man1/$$inst" > address@hidden && mv address@hidden $@
--
1.7.0.3.448.g82eeb
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] doc: clean up doc/Makefile.am,
Jim Meyering <=