[GRASS-SVN] r39667 - grass/trunk/man
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Nov 2 05:23:15 EST 2009
Author: glynn
Date: 2009-11-02 05:23:15 -0500 (Mon, 02 Nov 2009)
New Revision: 39667
Modified:
grass/trunk/man/Makefile
Log:
Re-factoring
Modified: grass/trunk/man/Makefile
===================================================================
--- grass/trunk/man/Makefile 2009-11-02 08:21:05 UTC (rev 39666)
+++ grass/trunk/man/Makefile 2009-11-02 10:23:15 UTC (rev 39667)
@@ -16,8 +16,21 @@
$(HTMLDIR)/nviz/grass_icon.png \
$(GEM_DST)
-IDXSRC = full_index index \
- display database general imagery misc postscript raster raster3D vector
+categories = \
+ d:display \
+ db:database \
+ g:general \
+ i:imagery \
+ m:misc \
+ ps:postscript \
+ r:raster \
+ r3:raster3D \
+ v:vector
+
+IDXCATS := $(foreach cat,$(categories),$(lastword $(subst :, ,$(cat))))
+
+IDXSRC = full_index index $(IDXCATS)
+
INDICES := $(patsubst %,$(HTMLDIR)/%.html,$(IDXSRC))
default: $(DSTFILES)
@@ -44,33 +57,13 @@
$(HTMLDIR)/index.html:
$(call build,index)
-$(HTMLDIR)/display.html: $(wildcard $(HTMLDIR)/d.*.html)
- $(call build,class,d display)
+define category_rule
+$$(HTMLDIR)/$(2).html: $$(wildcard $$(HTMLDIR)/$(1).*.html)
+ $$(call build,class,$(1) $(2))
+endif
-$(HTMLDIR)/database.html: $(wildcard $(HTMLDIR)/db.*.html)
- $(call build,class,db database)
+$(foreach cat,$(categories),$(eval $(call category_rule,$(firstword $(subst :, ,$(cat))),$(lastword $(subst :, ,$(cat))))))
-$(HTMLDIR)/general.html: $(wildcard $(HTMLDIR)/g.*.html)
- $(call build,class,g general)
-
-$(HTMLDIR)/imagery.html: $(wildcard $(HTMLDIR)/i.*.html)
- $(call build,class,i imagery)
-
-$(HTMLDIR)/misc.html: $(wildcard $(HTMLDIR)/m.*.html)
- $(call build,class,m misc)
-
-$(HTMLDIR)/postscript.html: $(wildcard $(HTMLDIR)/ps.*.html)
- $(call build,class,ps postscript)
-
-$(HTMLDIR)/raster.html: $(wildcard $(HTMLDIR)/r.*.html)
- $(call build,class,r raster)
-
-$(HTMLDIR)/raster3D.html: $(wildcard $(HTMLDIR)/r3.*.html)
- $(call build,class,r3 raster3D)
-
-$(HTMLDIR)/vector.html: $(wildcard $(HTMLDIR)/v.*.html)
- $(call build,class,v vector)
-
$(HTMLDIR)/grassdocs.css: grassdocs.css
$(INSTALL_DATA) $< $@
More information about the grass-commit
mailing list