diff options
author | Wolfgang Müller | 2019-07-21 21:09:36 +0200 |
---|---|---|
committer | Wolfgang Müller | 2019-07-21 21:09:36 +0200 |
commit | 4fe23d93c4f39b08f5bc4320af37ba109e618295 (patch) | |
tree | 5fd739e5189f68bb6ea9f5edc60aa68325adfe44 /Makefile | |
download | site-4fe23d93c4f39b08f5bc4320af37ba109e618295.tar.gz |
Initial import
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..58361c8 --- /dev/null +++ b/Makefile @@ -0,0 +1,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 $(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 |