tMakefile - mars - superminimal static website framework
HTML git clone git://parazyd.org/mars.git
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
tMakefile (612B)
---
1 # mars - superminimal static website framework
2 # See LICENSE file for copyright and license details
3 include config.mk
4
5 all: $(PAGES) $(TEXPAGES)
6
7 %: %.md
8 @echo " * generating $@"
9 @cat header.html nav.html | \
10 sed "s/{{{DEFAULT_TITLE}}}/$(shell sed 1q $^) | $(WEBTITLE)/" > $@
11 @$(MARKDOWN) $^ >> $@
12 @cat footer.html >> $@
13
14
15 %: %.tex
16 @echo " * generating $@"
17 @texi2pdf -c -q $^ -o $@
18
19 clean:
20 rm -f $(PAGES) $(TEXPAGES)
21
22 push: all
23 @echo " * pushing to $(WEBHOST):$(WEBROOT)"
24 @rsync -P -e "ssh" -avul --delete --stats \
25 --exclude-from "rsync-exclude" \
26 . $(WEBHOST):$(WEBROOT)
27
28 .PHONY: all clean push