[GRASS-SVN] r50554 - grass/trunk/man

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Jan 30 07:32:49 EST 2012


Author: glynn
Date: 2012-01-30 04:32:49 -0800 (Mon, 30 Jan 2012)
New Revision: 50554

Modified:
   grass/trunk/man/Makefile
Log:
Update timestamps
Minor clean-up


Modified: grass/trunk/man/Makefile
===================================================================
--- grass/trunk/man/Makefile	2012-01-30 11:49:12 UTC (rev 50553)
+++ grass/trunk/man/Makefile	2012-01-30 12:32:49 UTC (rev 50554)
@@ -2,14 +2,14 @@
 
 include $(MODULE_TOPDIR)/include/Make/Other.make
 
-MANPAGES = $(patsubst $(HTMLDIR)/%.html,$(MANDIR)/%.$(MANSECT),$(wildcard $(HTMLDIR)/*.html))
+MANPAGES := $(patsubst $(HTMLDIR)/%.html,$(MANDIR)/%.$(MANSECT),$(wildcard $(HTMLDIR)/*.html))
 
 DSTFILES := \
 	$(HTMLDIR)/grassdocs.css \
 	$(HTMLDIR)/grass_logo.png \
 	$(HTMLDIR)/grass_icon.png \
 	$(HTMLDIR)/nviz/grassdocs.css \
-	$(HTMLDIR)/nviz/grass_logo.png \
+	$(HTMLDIR)/nviz/grass_logo.png
 
 categories = \
 	d:display \
@@ -28,6 +28,8 @@
 
 INDICES := $(patsubst %,$(HTMLDIR)/%.html,$(IDXSRC))
 
+ALL_HTML := $(wildcard $(HTMLDIR)/*.*.html)
+
 default: $(DSTFILES)
 	@echo "Generating HTML manual pages index (help system)..."
 	$(MAKE) $(INDICES)
@@ -42,19 +44,21 @@
 .PHONY: manpages
 
 define build
-GISBASE="$(RUN_GISBASE)" ARCH="$(ARCH)" ARCH_DISTDIR="$(ARCH_DISTDIR)" \
-	$(PYTHON) ./build_$(1).py $(2)
+GISBASE="$(RUN_GISBASE)" ARCH="$(ARCH)" ARCH_DISTDIR="$(ARCH_DISTDIR)" $(PYTHON) ./build_$(1).py $(2)
 endef
 
-$(HTMLDIR)/full_index.html: $(wildcard $(HTMLDIR)/*.*.html)
+$(HTMLDIR)/full_index.html: $(ALL_HTML)
 	$(call build,full_index)
+	touch $@
 
 $(HTMLDIR)/index.html:
 	$(call build,index)
+	touch $@
 
 define category_rule
 $$(HTMLDIR)/$(2).html: $$(wildcard $$(HTMLDIR)/$(1).*.html)
 	$$(call build,class,$(1) $(2))
+	touch $$@
 endef
 
 $(foreach cat,$(categories),$(eval $(call category_rule,$(firstword $(subst :, ,$(cat))),$(lastword $(subst :, ,$(cat))))))



More information about the grass-commit mailing list