forked from alexkay/spek
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.am
48 lines (43 loc) · 994 Bytes
/
Makefile.am
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
47
48
SUBDIRS = \
data \
man \
po \
src \
tests
EXTRA_DIST = \
INSTALL.md \
LICENCE.md \
MANUAL.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:
pandoc --standalone --to=man --output=man/spek.1 MANUAL.md
pandoc --standalone --to=html --output=web/man-@[email protected] MANUAL.md
sed -e 's#<I>\(http://[^<]*\)</I>#<I><a href="\1">\1</a></I>#g' -i '' web/man-@[email protected]
sed -e 's#<head>#<head>\
<style type="text/css">\
body {font-size: 11pt;}\
h1, h2, h3 {font-weight: bold;}\
h1 {font-size: 13pt;}\
h2, h3 {font-size: 12pt;}\
</style>#' -i '' web/man-@[email protected]
upload:
rsync -avhz web/nginx.conf server:spek
rsync -avhz --delete --exclude="*.in" --exclude="nginx.conf" web/ server:spek/static