diff options
author | jao <jao@gnu.org> | 2019-04-23 23:09:25 +0100 |
---|---|---|
committer | jao <jao@gnu.org> | 2019-04-23 23:12:53 +0100 |
commit | 0ff8f6a7d6c775efa35698e067b4dd6c036ee2cd (patch) | |
tree | 5e1a3000a6d3bd92cabc06041bc94f57c0fa1893 /doc/web/makefile | |
parent | 7122b1e33a0078f93f21e77e2c0c985391d1d412 (diff) | |
download | xmobar-0ff8f6a7d6c775efa35698e067b4dd6c036ee2cd.tar.gz xmobar-0ff8f6a7d6c775efa35698e067b4dd6c036ee2cd.tar.bz2 |
Web makefile
Diffstat (limited to 'doc/web/makefile')
-rw-r--r-- | doc/web/makefile | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/doc/web/makefile b/doc/web/makefile new file mode 100644 index 0000000..eb6b212 --- /dev/null +++ b/doc/web/makefile @@ -0,0 +1,35 @@ +index.src = ../../readme.md +index = readme.md +releases = ../../changelog.md +css = xmobar.css +images = ../xmobar-sawfish.png ../xmobar-xmonad.png +remote = root@xmobar.org:/var/www/xmobar.org/ +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 + +imgs: + cp $(images) . + +upload-images: imgs + rsync -zav $(images) $(remote) + +upload-pages: $(htmls) + scp $(htmls) $(css) $(remote) + +upload: upload-images upload-pages + +clean: + rm -f $(htmls) $(index) *.png |