diff options
author | 2017-01-04 10:02:36 +0100 | |
---|---|---|
committer | 2017-01-23 14:59:32 +0100 | |
commit | fd5f3db501dd4fcc054ff182c4336c3e073a11d6 (patch) | |
tree | afa908e4d434dd7bfaf8923e907f9000efc724b5 /Makefile | |
parent | 5d3c0af5b16aabf66a854d88437e1e27b479e256 (diff) |
add local fetch to easily test local modification
* add "make localFetch" command
* a local local fetch can't be push, you must clean
and do a regular fetch to push upstream
* AGL_GITHUB_FETCH,AGL_GITHUB_EDIT is use to specify the AGL source
* AGL_GITHUB_BRANCH is use to choose the AGL doc branch
* AGL_SRC is use to specify the AGL github user
* AGL_GERRIT_BRANCH is use to choose the AGL gerrit doc branch
* Usage:
- make fetch: fetch the site if necessary
- make localFetch: fetch the site if necessary but use local file.
So just use "make localFetch" instead on "make fetch" to do a local fetch
Signed-off-by: Ronan <ronan.lemartret@iot.bzh>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -3,6 +3,7 @@ DOCBUILD=../doctools/webdocs/docbuild VERBOSE=--verbose FETCHTS=.fetch.ts +LOCALFETCH=.LocalFetch.ts all: help @@ -10,6 +11,7 @@ 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" @@ -18,15 +20,25 @@ help: clean: $(DOCBUILD) $(VERBOSE) --clean rm -f $(FETCHTS) + rm -f $(LOCALFETCH) + +$(LOCALFETCH): $(wildcard site/_tocs/*/fetched_files.yml) + $(DOCBUILD) $(VERBOSE) --localFetch --fetch --force + touch $(FETCHTS) + touch $@ $(FETCHTS): $(wildcard site/_tocs/*/fetched_files.yml) - $(DOCBUILD) $(VERBOSE) --fetch --force + $(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 |