summaryrefslogtreecommitdiffhomepage
path: root/web/Makefile
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2011-09-20 04:49:55 +0200
committerJose Antonio Ortega Ruiz <jao@gnu.org>2011-09-20 04:49:55 +0200
commitf17f51e55209fb829337b7275c66fd577ab53982 (patch)
treea5fb3dd29fb1cab007aa5d5c334fd7d9a2362006 /web/Makefile
parent66b533931a57451f4fa24e705aacd587c1407d6f (diff)
downloadxmobar-f17f51e55209fb829337b7275c66fd577ab53982.tar.gz
xmobar-f17f51e55209fb829337b7275c66fd577ab53982.tar.bz2
web generation files added
Diffstat (limited to 'web/Makefile')
-rw-r--r--web/Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/web/Makefile b/web/Makefile
new file mode 100644
index 0000000..6f807e9
--- /dev/null
+++ b/web/Makefile
@@ -0,0 +1,25 @@
+index = ../README
+releases = ../NEWS
+css = xmobar.css
+images = xmobar-sawfish.png xmobar-xmonad.png
+remote = community.haskell.org:/srv/projects/xmobar/
+htmls = index.html releases.html
+
+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)
+ rsync -zav $(htmls) $(css) $(remote)
+
+upload: upload-images upload-pages
+
+clean:
+ rm -f $(htmls)