simplify docs Makefile

This commit is contained in:
Albert Cahalan 2008-05-24 06:41:06 +00:00
parent 1e891b9df6
commit bcb5f54eb9
7 changed files with 11 additions and 315 deletions

View file

@ -14,30 +14,15 @@
LINKS_OPTIONS:=-dump
LINKS:=links $(LINKS_OPTIONS)
HTMLFILES:=$(wildcard html/*.html)
TEXTFILES:=$(patsubst html/%.html,%.txt,$(HTMLFILES))
.PHONY: all
all: README.txt OPTIONS.txt FAQ.txt EXTENDING.txt ADVANCED-STAMPS-HOWTO.txt
all: $(TEXTFILES)
.PHONY: clean
clean:
-rm README.txt
-rm OPTIONS.txt
-rm FAQ.txt
-rm EXTENDING.txt
-rm ADVANCED-STAMPS-HOWTO.txt
-rm $(TEXTFILES)
README.txt: html/README.html
$(TEXTFILES): %.txt: html/%.html
$(LINKS) $< > $@
OPTIONS.txt: html/OPTIONS.html
$(LINKS) $< > $@
FAQ.txt: html/FAQ.html
$(LINKS) $< > $@
EXTENDING.txt: html/EXTENDING.html
$(LINKS) $< > $@
ADVANCED-STAMPS-HOWTO.txt: html/ADVANCED-STAMPS-HOWTO.html
$(LINKS) $< > $@