blob: cb08fda89e5f7c311f5e8f412d2d74ea74da6c2c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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)
@sed -E "s/^\\[!\\[Build .+/$(title)/1" $(index.src) > $(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)
rsync -zav $(htmls) $(css) $(remote)
upload: upload-images upload-pages
clean:
rm -f $(htmls) $(index)
|