blob: 12d16cde0f2f47d84580f1bcc66c8a7ea9c97c2d (
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
29
30
31
32
33
34
35
36
37
|
HT2HTML = $(HOME)/projects/ht2html/ht2html.py
HTSTYLE = MMGenerator
HTALLFLAGS = -f -s $(HTSTYLE)
HTROOT = .
HTFLAGS = $(HTALLFLAGS) -r $(HTROOT)
HTRELDIR = .
# Use args for rsync like -a without the permission setting flag. I want to
# keep the permissions set the way they are on the destination files, not on
# my source files. Also add verbosity, compression, and ignoring CVS.
RSYNC_ARGS = -rltgoDCvz
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 $< $@
install:
-rsync $(RSYNC_ARGS) . www.list.org:mailman.list.org
-rsync $(RSYNC_ARGS) . mailman.sf.net:mailman/htdocs
-rsync $(RSYNC_ARGS) . $(HOME)/projects/mailman-gnu
clean:
-rm $(GENERATED_HTML)
-rm faq.ht todo.ht
|