blob: 2b8f63a82c211211d4d852ab20e6347fbb1b5a18 (
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
|
POSTS_MD = $(wildcard posts/*.md)
POSTS_XML = $(wildcard posts/*.xml)
SCSS = $(wildcard scss/_*.scss)
HTML = $(POSTS_MD:.md=.html) $(POSTS_XML:.xml=.html)
.PHONY: site
site: index.html atom.xml style.css man.css
index.html: templates/index.xml $(HTML)
sblg -o $@ -t templates/index.xml $(HTML)
atom.xml: templates/atom.xml $(HTML)
sblg -ao $@ -t templates/atom.xml $(HTML)
%.html: %.xml templates/post.xml
sblg -co $@ -t templates/post.xml $<
%.xml: %.md util/mdconv.sh
sh util/mdconv.sh $< >$@
style.css: scss/style.scss $(SCSS)
sassc -t expanded $< >$@
man.css: scss/man.scss $(SCSS)
sassc -t expanded $< >$@
clean:
rm -f posts/*.html index.html atom.xml style.css man.css
deploy:
rsync -avhP fonts index.html style.css man.css logo.svg atom.xml coleridge:www/oriole.systems/
rsync -avhP posts/*.html coleridge:www/oriole.systems/posts/
.PHONY: clean deploy
|