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 33 34 35 36 37 38 39 40 41 42 43 44 45 46
|
SUBDIRS = \
data \
man \
po \
src \
tests
EXTRA_DIST = \
INSTALL.md \
LICENCE.md \
README.md \
intltool-extract.in \
intltool-merge.in \
intltool-update.in \
lic/Expat \
lic/GPL \
lic/IJG \
lic/LGPL \
lic/libpng \
lic/libtiff \
lic/regex \
lic/wxWindows \
lic/zlib \
tests/samples
DISTCLEANFILES = \
intltool-extract \
intltool-merge \
intltool-update
.PHONY: man upload
man:
man man/spek.1 | man2html -title "Spek @VERSION@ manual" > web/man-@VERSION@.html
sed -e 's#<I>\(http://[^<]*\)</I>#<I><a href="\1">\1</a></I>#g' -i '' web/man-@VERSION@.html
sed -e 's#<HEAD>#<HEAD>\
<style type="text/css">\
body {font-size: 11pt;}\
h1, h2 {font-weight: bold;}\
h1 {font-size: 16pt;}\
h2 {font-size: 12pt;}\
</style>#' -i '' web/man-@VERSION@.html
upload:
rsync -avhz web/nginx.conf server:spek
rsync -avhz --delete --exclude="*.in" --exclude="nginx.conf" web/ server:spek/static
|