-
Notifications
You must be signed in to change notification settings - Fork 10
/
Makefile
99 lines (86 loc) · 2.3 KB
/
Makefile
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
.SUFFIXES: .xml .html .dot .svg .gnuplot .png .c.xml
PREFIX ?= /var/www/vhosts/kristaps.bsd.lv/htdocs/bchs
DOCLEAN =
DOCLEANDIR =
DOINSTALL =
DOINSTALLDIR =
PAGES = auditing.html \
dates.html \
easy.html \
index.html \
json.html \
ksql.html \
kwebapp.html \
pledge.html \
portability.html \
portability-page2.html \
portability-page3.html \
rbac.html \
sqlbox.html \
tools.html \
translate.html \
typescript.html
CSSS = audit.css \
index.css \
highlight.css \
tools.css
GENS = highlight.css \
$(FAVICONS)
FAVICONS = favicon.ico \
favicon-196x196.png
BUILT = audit.js \
arrow-left.png \
arrow-right-long.png \
arrow-right.png \
arrow-up.png \
arrow-down.png \
background.jpg \
background-white.jpg \
puffy.png \
logo-blue.png \
logo-white.png \
sqlite.png
www: $(FAVICONS) $(PAGES)
include Makefile-dates
include Makefile-easy
include Makefile-ksql
include Makefile-json
include Makefile-openradtool
include Makefile-pledge
include Makefile-portability
include Makefile-rbac
include Makefile-sqlbox
$(PAGES): highlight.css
installwww: www
mkdir -p $(PREFIX)
install -m 0444 $(DOINSTALL) $(BUILT) $(CSSS) $(PAGES) $(PREFIX)
install -m 0444 $(FAVICONS) robots.txt sitemap.xml $(PREFIX)
for f in $(DOINSTALLDIR) ; \
do \
tar cf - $$f | tar -xf - -C $(PREFIX) ; \
done
clean:
rm -f $(PAGES) $(GENS)
rm -rf $(DOCLEANDIR)
rm -f $(DOCLEAN)
.c.c.xml:
( echo '<article data-sblg-article="1">' ; \
highlight -lf --out-format=xhtml --enclose-pre --src-lang=c $< ; \
echo '</article>' ; ) >$@
.xml.html:
cp -f $< $@
.dot.svg:
dot -Tsvg $< | xsltproc --novalid notugly.xsl - >$@
.gnuplot.png:
gnuplot $<
highlight.css: github.theme
highlight -O html --print-style --css $@ --config-file=github.theme
favicon-196x196.png: favicon.png
convert favicon.png -resize 196 $@
favicon.ico: favicon.png
convert favicon.png -resize 32 favicon-32x32.png
convert favicon.png -resize 48 favicon-48x48.png
convert favicon.png -resize 64 favicon-64x64.png
convert favicon.png -resize 128 favicon-128x128.png
convert favicon-32x32.png favicon-48x48.png favicon-64x64.png favicon-128x128.png $@
rm -f favicon-32x32.png favicon-48x48.png favicon-64x64.png favicon-128x128.png