summaryrefslogtreecommitdiff
path: root/sandbox/mly/restblog/Makefile
blob: d3403e589dc3b670ac9ff3506ff35d99b73f9542 (plain)
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
DOCUTILTOOLPATH = /home/mly/palanga/python/docutils/docutils/tools/
HTML = $(DOCUTILTOOLPATH)html.py
MAIN_INDEX = ./main_index.py
DATE_INDEX = ./date_index.py
SUBJ_INDEX = ./subj_index.py
KEYW_INDEX = ./keyw_index.py

.SUFFIXES: .html .txt

blogs := $(patsubst %.txt,%.html,$(wildcard *.txt))

all: $(blogs) index.html date_index.html subject_index.html keyword_index.html
	
index.html: $(blogs)
	$(MAIN_INDEX)

date_index.html: $(blogs)
	$(DATE_INDEX)
	
subject_index.html: $(blogs)
	$(SUBJ_INDEX)
	
keyword_index.html: $(blogs)
	$(KEYW_INDEX)

# --trim-footnote-reference-space ersätter --snap... och funkar även i
#  HTML

.txt.html: 
	$(HTML) -len -o iso-8859-1 $< > $@

install:
	scp *.html default.css thinkwar@thinkware.se:/home/t/thinkwar/www/home/magnus/blog/

clean:
	rm *~ *.html