aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 1321a4ff2f2a530c36dce9d9841a8ecc584e1343 (plain)
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
DOCBUILD=../doctools/webdocs/docbuild

VERBOSE=--verbose

all: help

help: 
	@echo "Usage:"
	@echo "- make clean: clean all generated files"
	@echo "- make build: build the site"
	@echo "- make push: push the built site"
	@echo "- make serve: serve the site"

.PHONY: clean
clean:
	$(DOCBUILD) $(VERBOSE) --clean

.PHONY: fetch
fetch:
	$(DOCBUILD) $(VERBOSE) --fetch --force 

.PHONY: build
build: fetch
	$(DOCBUILD) $(VERBOSE) --build

.PHONY: push
push: fetch
	$(DOCBUILD) $(VERBOSE) --build --push

.PHONY: serve
serve: fetch 
	$(DOCBUILD) $(VERBOSE) --fetch --force 
	$(DOCBUILD) $(VERBOSE) --build --serve