From f86bbb8ca5d3ba0d18e333cbe6cb57cc17e3ae07 Mon Sep 17 00:00:00 2001 From: jao Date: Sun, 25 Nov 2018 15:26:44 +0000 Subject: doc, examples --- doc/web/Makefile | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 doc/web/Makefile (limited to 'doc/web/Makefile') diff --git a/doc/web/Makefile b/doc/web/Makefile new file mode 100644 index 0000000..411f589 --- /dev/null +++ b/doc/web/Makefile @@ -0,0 +1,32 @@ +index.src = ../readme.md +index = readme.md +releases = ../news.md +css = xmobar.css +images = xmobar-sawfish.png xmobar-xmonad.png +remote = community.haskell.org:/srv/projects/xmobar/ +htmls = index.html releases.html +title = % xmobar - a minimalistic status bar + +default: index.html + +$(index): $(index.src) + @tail -n+3 $(index.src) | sed "1s/^/$(title)\n/" > $(index) + +index.html: releases.html $(index) $(css) + pandoc -f markdown -t html -c $(css) --toc -N -s \ + $(index) > index.html + +releases.html: $(releases) $(css) + pandoc -f markdown -t html -c $(css) -s \ + $(releases) > releases.html + +upload-images: + rsync -zav $(images) $(remote) + +upload-pages: $(htmls) + scp $(htmls) $(css) $(remote) + +upload: upload-images upload-pages + +clean: + rm -f $(htmls) $(index) -- cgit v1.2.3