aboutsummaryrefslogtreecommitdiffstats
path: root/admin/www/Makefile
blob: 23e5eeffe41d131f015d1e53450c96da05a86e14 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
HT2HTML = $(HOME)/projects/ht2html/ht2html.py

HTSTYLE = MMGenerator
HTALLFLAGS = -f -s $(HTSTYLE)
HTROOT = .
HTFLAGS = $(HTALLFLAGS) -r $(HTROOT)
HTRELDIR = .

SOURCES =	$(shell echo *.ht)
EXTRA_TARGETS = faq.html todo.html
TARGETS =	$(filter-out *.html,$(SOURCES:%.ht=%.html)) $(EXTRA_TARGETS)
GENERATED_HTML= $(SOURCES:.ht=.html)

.SUFFIXES:	.ht .html
.ht.html:
	$(HT2HTML) $(HTFLAGS) $(HTRELDIR)/$<

all: $(TARGETS)

faq.ht: ../../FAQ
	../bin/faq2ht.py $< $@

todo.ht: ../../TODO
	../bin/mm2do $< $@

clean:
	-rm $(GENERATED_HTML)
	-rm faq.ht todo.ht