forked from stratis-storage/stratis-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
46 lines (39 loc) · 1.13 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
SITE=./public
PRE_SITE=./static
ZOLA := $(if $(shell which zola),,foo)
LYX := $(if $(shell which lyx),,foo)
pdfs:
ifdef LYX
@echo "ERROR: No lyx found in PATH, cannot build PDF documentation"
exit 1
endif
cd ./docs/design ; $(MAKE) StratisSoftwareDesign.pdf; cd -
cd ./docs/dbus; $(MAKE) DBusAPIReference.pdf; cd -
cd ./docs/style; $(MAKE) StratisStyleGuidelines.pdf; cd -
website-build: pdfs
ifdef ZOLA
@echo "ERROR: No zola found in PATH, cannot build website. Follow instructions at https://getzola.org/documentation/"
exit 1
endif
cp ./docs/design/StratisSoftwareDesign.pdf $(PRE_SITE)
cp ./docs/dbus/DBusAPIReference.pdf $(PRE_SITE)
cp ./docs/style/StratisStyleGuidelines.pdf $(PRE_SITE)
website-distrib: website-build
zola build
website-test: website-build
zola serve
check:
cd ./docs/design ; $(MAKE) check && cd -
cd ./docs/dbus ; $(MAKE) check && cd -
cd ./docs/style ; $(MAKE) check && cd -
clean:
- rm -Rf $(SITE)
cd ./docs/dbus ; $(MAKE) clean && cd -
cd ./docs/design ; $(MAKE) clean && cd -
cd ./docs/style ; $(MAKE) clean && cd -
cd ./images ; $(MAKE) clean && cd -
.PHONY:
check
clean
pdfs
website-distrib