aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorStephane Desneux <stephane.desneux@iot.bzh>2016-11-16 17:13:55 +0100
committerStephane Desneux <stephane.desneux@iot.bzh>2016-11-16 17:13:55 +0100
commit9d76b1686c8272402b20ee638d124db8a0bf3d36 (patch)
treec1ce218ef3f7fa2780e493e6261f9591f9ce70e1 /Makefile
parent8baa57816ef35468cf84e63503d055d58d43f63b (diff)
webdocs: updated README; fix htaccess for local .md files
Change-Id: I9458a663ed1e2df1a38fa606e834b448b2bab312 Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 13 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 38d105c..c61608e 100644
--- a/Makefile
+++ b/Makefile
@@ -2,11 +2,14 @@ DOCBUILD=../doctools/webdocs/docbuild
VERBOSE=--verbose
+FETCHTS=.fetch.ts
+
all: help
help:
@echo "Usage:"
@echo "- make clean: clean all generated files"
+ @echo "- make fetch: fetch the site if necessary"
@echo "- make build: build the site"
@echo "- make push: push the built site"
@echo "- make serve: serve the site"
@@ -14,20 +17,25 @@ help:
.PHONY: clean
clean:
$(DOCBUILD) $(VERBOSE) --clean
+ rm -f $(FETCHTS)
+
+$(FETCHTS): $(wildcard site/_tocs/*/fetched_files.yml)
+ $(DOCBUILD) $(VERBOSE) --fetch --force
+ touch $@
.PHONY: fetch
-fetch:
- $(DOCBUILD) $(VERBOSE) --fetch --force
+fetch: $(FETCHTS)
+ @echo "Fetched files up to date."
.PHONY: build
-build: fetch
+build: $(FETCHTS)
$(DOCBUILD) $(VERBOSE) --build
.PHONY: push
-push: fetch
+push: $(FETCHTS)
$(DOCBUILD) $(VERBOSE) --build --push
.PHONY: serve
-serve: fetch
+serve: $(FETCHTS)
$(DOCBUILD) $(VERBOSE) --build --serve