-
Notifications
You must be signed in to change notification settings - Fork 32
/
Makefile.in
59 lines (45 loc) · 1.5 KB
/
Makefile.in
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
EBOOKCONVERT=$(shell which ebook-convert)
GITBOOK=gitbook
all:
$(MAKE) -C src
install: all
$(MAKE) -C src install DESTDIR=$(DESTDIR)
configure: configure.ac
autoreconf -i -I buildtools
gitbook-setup:
$(GITBOOK) install
buildtools/mkcodedocs.pl src docs-md/apireference
rm -f docs-md/mtev_version.md
$(MAKE) -C src ../docs-md/mtev_version.md
$(MAKE) -C src/modules alldocs
docs-serve: gitbook-setup
$(GITBOOK) serve .
docs-html: gitbook-setup
$(GITBOOK) build . docs
buildtools/gitbook-cleanup.sh
docs-pdf: gitbook-setup
PATH=$(shell dirname $(EBOOKCONVERT)):$(shell echo $$PATH) $(GITBOOK) pdf . docs/libmtev-manual.pdf
COMPRESS_JS=uglifyjs
COMPRESS_CSS=uglifycss
WEBJS=jquery.min.js tether.min.js bootstrap.min.js d3.v4.min.js d3-scale.v1.min.js \
bootstrap-toggle.min.js colorbrewer.js circllhist.js circhistd3.js \
mtev.js mtev.http_observer.js
FWEBJS=$(WEBJS:%.js=web/js/%.js)
WEBCSS=b-glyphicons.css colorbrewer.css bootstrap-theme.min.css bootstrap.min.css \
tether.min.css bootstrap-toggle.min.css theme-base.css
FWEBCSS=$(WEBCSS:%.css=web/css/%.css)
web/js/mtev.min.js: $(FWEBJS)
cat $(FWEBJS) | $(COMPRESS_JS) > $@
web/css/mtev.min.css: $(FWEBCSS)
cat $(FWEBCSS) | $(COMPRESS_CSS) > $@
web-compress: web/js/mtev.min.js web/css/mtev.min.css
web-distclean:
rm -f web/js/mtev.min.js web/css/mtev.min.css
clean:
$(MAKE) -C src clean
$(MAKE) -C src clean
$(MAKE) -C test clean
distclean: clean web-distclean
rm -f Makefile config.status config.log
$(MAKE) -C src distclean
$(MAKE) -C src distclean