-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
55 lines (44 loc) · 1.52 KB
/
Makefile
File metadata and controls
55 lines (44 loc) · 1.52 KB
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
.SUFFIXES: .txt .html
NEWS = \
news/news.html \
news/release-0.1.0.html \
news/release-0.2.0.html \
news/release-0.3.0.html \
news/release-0.4.0.html \
news/release-0.5.0.html \
news/release-0.6.0.html \
news/release-0.7.0.html \
news/release-0.8.0.html \
news/sysdb.go.html \
news/webui.html
all: sysdb.io $(NEWS)
all-install: install man-install
sysdb.io: src/sysdb.io.go
GOPATH="$(CURDIR)" go build $<
newsconv: src/newsconv.go
GOPATH="$(CURDIR)" go build $<
news/news.html: news/*.txt
news/release-0.1.0.html: news/release-0.1.0.txt
news/release-0.2.0.html: news/release-0.2.0.txt
news/release-0.3.0.html: news/release-0.3.0.txt
news/release-0.4.0.html: news/release-0.4.0.txt
news/release-0.5.0.html: news/release-0.5.0.txt
news/release-0.6.0.html: news/release-0.6.0.txt
news/release-0.7.0.html: news/release-0.7.0.txt
news/release-0.8.0.html: news/release-0.8.0.txt
news/sysdb.go.html: news/sysdb.go.txt
news/webui.html: news/webui.txt
install: sysdb.io newsconv $(NEWS)
./sysdb.io --force --output /var/www/sysdb.io
./newsconv --force --output /var/www/sysdb.io
rsync --exclude '.*.swp' -vax static/ /var/www/sysdb.io
man-head:
#cd src/sysdb && ./autogen.sh && make configure
rm -f src/sysdb/doc/*.html
make -C src/sysdb/doc/ ADOCFLAGS="-f $(CURDIR)/asciidoc.conf"
mkdir -p templates/manpages/head
cp src/sysdb/doc/*.html templates/manpages/head
man-install: man-head
./sysdb.io --configfile manpages-head.conf --force --output /var/www/sysdb.io
.txt.html:
asciidoc -b html5 -d article --no-header-footer $<