forked from MSO4SC/book.mso4sc.eu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
36 lines (28 loc) · 935 Bytes
/
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
HELP="Usage: make <option> \n\
\nOptions:\n\
\n\
\tinstall - install required packages (bundler, npm required) \n\
\tbuild - build the documentation \n\
\tclean - clean gem lock file (redo install after) \n\
\thelp - print this help\n\n"
BUILD_DIR=./build
all: help
install:
npm init -y; \
npm install --save . @antora/cli; \
npm install --save . @antora/site-generator-default \
npm install --save . live-server
build: clean
antora --pull antora-local-mso4sc-doc.yml
@echo "INFO: File generated in 'build/build/site/feelpp-doc/'"
serve:
live-server --wait=1000 build/site
sync: build
#rsync -avz --delete build/site/ es15.siteground.eu:~/public_html/books.mso4sc.org/
rsync -avz --include '*/' --include '*.png' --include '*.jpg' --include '*.jpeg' --exclude '*' build/site/ es15.siteground.eu:~/public_html/books.mso4sc.org/
clean:
rm -rf build
clean-all: clean
rm -rf node_modules
help:
@printf ${HELP}