blob: 21faf08364080a87b47a54c47b4bd1d0537eaa67 (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
DOCBUILD=../doctools/webdocs/docbuild
VERBOSE=--verbose
FETCHTS=.fetch.ts
LOCALFETCH=.LocalFetch.ts
all: help
help:
@echo "Usage:"
@echo "- make clean: clean all generated files"
@echo "- make fetch: fetch the site if necessary"
@echo "- make localFetch: fetch the site if necessary but use local file."
@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
rm -f $(FETCHTS)
rm -f $(LOCALFETCH)
$(LOCALFETCH): $(wildcard content/toc/*/fetched_files.yml)
$(DOCBUILD) $(VERBOSE) --localFetch --fetch --force
touch $(FETCHTS)
touch $@
$(FETCHTS): $(wildcard content/toc/*/fetched_files.yml)
$(DOCBUILD) $(VERBOSE) $(LOCAL_FETCHTS) --fetch --force
touch $@
.PHONY: fetch
fetch: $(FETCHTS)
@echo "Fetched files up to date."
.PHONY: localFetch
localFetch: $(LOCALFETCH) $(FETCHTS)
@echo "Fetched files up to date and copy local file."
.PHONY: build
build: $(FETCHTS)
$(DOCBUILD) $(VERBOSE) --build
.PHONY: push
push: $(FETCHTS)
$(DOCBUILD) $(VERBOSE) --build --push
.PHONY: serve
serve: $(FETCHTS)
$(DOCBUILD) $(VERBOSE) --build --serve
|