From 7ac1655a4e82a516025175089b8b5dd57e08a5d0 Mon Sep 17 00:00:00 2001 From: Clément Bénier Date: Tue, 19 Mar 2019 11:37:23 +0100 Subject: Makefile: add VERSIONS and SECTIONS options MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - VERSIONS=[VERSION, ...]: desired versions, separated by ',' - SECTIONS=[SECTION, ...]: desired sections, secparated by ',' Signed-off-by: Clément Bénier --- Makefile | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index 8892612..f097a0d 100644 --- a/Makefile +++ b/Makefile @@ -8,13 +8,18 @@ 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" + @echo -e "Usage:" + @echo -e "- make clean: clean all generated files" + @echo -e "- make fetch VERSIONS=[VERSION,...] SECTIONS=[SECTION,...]: fetch the site if necessary " + @echo -e "- make localFetch VERSIONS=[VERSION,...] SECTIONS=[SECTION,...]: fetch the site if necessary but use local file." + @echo -e "- make build VERSIONS=[VERSION,...] SECTIONS=[SECTION,...]: build the site" + @echo -e "- make push VERSIONS=[VERSION,...] SECTIONS=[SECTION,...]: push the built site" + @echo -e "- make serve VERSIONS=[VERSION,...] SECTIONS=[SECTION,...]: serve the site" + @echo -e + @echo -e "VERSIONS=" + @echo -e "\t represents the desired versions, separated with ," + @echo -e "SECTIONS=" + @echo -e "\t represents the desired sections, separated with ," .PHONY: clean clean: @@ -28,7 +33,7 @@ $(LOCALFETCH): $(wildcard content/toc/*/fetched_files.yml) touch $@ $(FETCHTS): $(wildcard content/toc/*/fetched_files.yml) - $(DOCBUILD) $(VERBOSE) $(LOCAL_FETCHTS) --fetch --force + $(DOCBUILD) $(VERBOSE) $(LOCAL_FETCHTS) --fetch --force --versions=$(VERSIONS) --sections=$(SECTIONS) touch $@ .PHONY: fetch -- cgit 1.2.3-korg