HtmlRules.make 518 B

123456789101112131415161718192021
  1. # common html rules (included by Html.make and GuiScript.make)
  2. htmldesc = $(call run_grass,$(1) --html-description < /dev/null | grep -v '</body>\|</html>' > $(2))
  3. IMGSRC := $(wildcard *.png) $(wildcard *.jpg) $(wildcard *.gif)
  4. IMGDST := $(patsubst %,$(HTMLDIR)/%,$(IMGSRC))
  5. ifneq ($(strip $(IMGDST)),)
  6. .SECONDARY: $(IMGDST)
  7. endif
  8. $(HTMLDIR)/%.png: %.png | $(HTMLDIR)
  9. $(INSTALL_DATA) $< $@
  10. $(HTMLDIR)/%.jpg: %.jpg | $(HTMLDIR)
  11. $(INSTALL_DATA) $< $@
  12. $(HTMLDIR)/%.gif: %.gif | $(HTMLDIR)
  13. $(INSTALL_DATA) $< $@