[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 5/8] maint: factor out the name of the dir where web manuals are
From: |
Stefano Lattarini |
Subject: |
[PATCH 5/8] maint: factor out the name of the dir where web manuals are generated |
Date: |
Thu, 13 Dec 2012 16:17:47 +0100 |
Just a minor refactoring to reduce duplication; no semantic change is
intended.
* Makefile.am (web_manual_dir): New.
(web-manual, web-manual-update, clean-web-manual): Use it.
Signed-off-by: Stefano Lattarini <address@hidden>
---
Makefile.am | 16 +++++++++-------
1 file changed, 9 insertions(+), 7 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index 895afa8..aa899b3 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -997,6 +997,8 @@ fetch:
## Generate and upload manuals in several formats, for the GNU website. ##
## ---------------------------------------------------------------------- ##
+web_manual_dir = doc/web-manual
+
RSYNC = rsync
CVS = cvs
CVSU = cvsu
@@ -1004,7 +1006,7 @@ CVS_USER = $${USER}
WEBCVS_ROOT = cvs.savannah.gnu.org:/web
web-manual:
- $(AM_V_at)rm -rf doc/web-manuals
+ $(AM_V_at)rm -rf $(web_manual_dir)
$(AM_V_GEN)address@hidden \
&& rm -rf $$tmp \
&& mkdir $$tmp \
@@ -1020,10 +1022,10 @@ web-manual:
-I '$(abs_srcdir)/doc' --email $(PACKAGE_BUGREPORT) \
$(PACKAGE) '$(PACKAGE_NAME)'
$(AM_V_at)address@hidden \
- && mkdir doc/web-manuals \
- && mv -f $$tmp/manual/* doc/web-manuals \
+ && mkdir $(web_manual_dir) \
+ && mv -f $$tmp/manual/* $(web_manual_dir) \
&& rm -rf $$tmp \
- && { ! $(AM_V_P) || ls -l doc/web-manuals; }
+ && { ! $(AM_V_P) || ls -l $(web_manual_dir); }
.PHONY: web-manual
web-manual-update:
@@ -1034,7 +1036,7 @@ web-manual-update:
*) echo "Cannot upload manuals from a \"$$release_type\"" >&2; \
exit 1;; \
esac
- $(AM_V_at)test -f doc/web-manuals/$(PACKAGE).html || { \
+ $(AM_V_at)test -f $(web_manual_dir)/$(PACKAGE).html || { \
echo 'You have to run "$(MAKE) web-manuals" before' \
'invoking "$(MAKE) $@"' >&2; \
exit 1; \
@@ -1048,7 +1050,7 @@ web-manual-update:
&& $(CVS) -z3 -d :ext:$(CVS_USER)@$(WEBCVS_ROOT)/$(PACKAGE) \
co $(PACKAGE) \
&& cd .. \
- && $(RSYNC) -avP doc/web-manuals/ $$tmp/$(PACKAGE)/manual \
+ && $(RSYNC) -avP $(web_manual_dir)/ $$tmp/$(PACKAGE)/manual \
&& ( \
cd $$tmp/$(PACKAGE)/manual \
&& new_files=`$(CVSU) --types='?'` \
@@ -1060,7 +1062,7 @@ web-manual-update:
.PHONY: web-manual-update
clean-web-manual:
- $(AM_V_at)rm -rf doc/web-manuals
+ $(AM_V_at)rm -rf $(web_manual_dir)
.PHONY: clean-web-manual
clean-local: clean-web-manual
--
1.8.0.1.347.gf94c325
- [PATCH 0/8] More automation in generation/upload of web manuals, Stefano Lattarini, 2012/12/13
- [PATCH 3/8] cosmetic: minor variable and rules reordering in Makefile.am, Stefano Lattarini, 2012/12/13
- [PATCH 2/8] docs: build the web manuals for CVS in the builddir, not in the srcdir, Stefano Lattarini, 2012/12/13
- [PATCH 7/8] HACKING: update instructions to update the manuals at www.gnu.org, Stefano Lattarini, 2012/12/13
- [PATCH 1/8] release: automate uploading of web manuals in CVS, Stefano Lattarini, 2012/12/13
- [PATCH 8/8] HACKING: minor formatting changes, for better clarity, Stefano Lattarini, 2012/12/13
- [PATCH 4/8] maint: rename rules to build/upload web manuals, Stefano Lattarini, 2012/12/13
- [PATCH 6/8] maint: add an explicative comment in Makefile, Stefano Lattarini, 2012/12/13
- [PATCH 5/8] maint: factor out the name of the dir where web manuals are generated,
Stefano Lattarini <=
- Re: [PATCH 0/8] More automation in generation/upload of web manuals, Stefano Lattarini, 2012/12/14