Html.make 593 B

123456789101112131415161718192021222324252627
  1. # generic html rules for all commands
  2. include $(MODULE_TOPDIR)/include/Make/HtmlRules.make
  3. $(HTMLDIR)/%.html: %.html %.tmp.html $(HTMLSRC) $(IMGDST) | $(HTMLDIR)
  4. VERSION_NUMBER=$(GRASS_VERSION_NUMBER) VERSION_DATE=$(GRASS_VERSION_DATE) MODULE_TOPDIR=$(MODULE_TOPDIR) \
  5. $(PYTHON) $(GISBASE)/utils/mkhtml.py $* > $@
  6. $(MANDIR)/%.$(MANSECT): $(HTMLDIR)/%.html
  7. $(HTML2MAN) "$<" "$@"
  8. %.tmp.html: $(HTMLSRC)
  9. if [ "$(HTMLSRC)" != "" ] ; then $(call htmldesc,$<,$@) ; fi
  10. ifdef CROSS_COMPILING
  11. html:
  12. else
  13. html: $(HTMLDIR)/$(PGM).html $(MANDIR)/$(PGM).$(MANSECT)
  14. endif
  15. .PHONY: html