From bb5e30e934e875a2d9fd60c306fe9031ef4666f9 Mon Sep 17 00:00:00 2001 From: Torin Sandall Date: Mon, 8 Apr 2019 16:54:54 -0700 Subject: [PATCH] Move the gh-pages target into separate Makefile The VERSION ifdef guard was causing the Netlify build to fail. Split the gh-pages build into a separate Makefile for now. Signed-off-by: Torin Sandall --- Makefile | 2 +- docs/Makefile | 14 -------------- docs/Makefile.ghpages | 13 +++++++++++++ 3 files changed, 14 insertions(+), 15 deletions(-) create mode 100644 docs/Makefile.ghpages diff --git a/Makefile b/Makefile index 115fec83e0..a84e3b8374 100644 --- a/Makefile +++ b/Makefile @@ -174,7 +174,7 @@ clean: wasm-clean .PHONY: site site: - $(MAKE) -C docs VERSION=$(VERSION) + $(MAKE) -C docs -f Makefile.ghpages VERSION=$(VERSION) ###################################################### # diff --git a/docs/Makefile b/docs/Makefile index f18a3ada7c..9dc4d94745 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -1,17 +1,3 @@ -all: -ifndef VERSION -$(error VERSION is not set) -endif - rm -fr public resources generated - echo "- $(VERSION)" > data/releases.yaml - mkdir -p generated/docs - cp -r content/docs generated/docs/v$(VERSION) - hugo \ - --contentDir generated \ - --ignoreCache \ - --minify - tar czvf site.tar.gz -C public . - clean: rm -rf public diff --git a/docs/Makefile.ghpages b/docs/Makefile.ghpages new file mode 100644 index 0000000000..0b19bceab5 --- /dev/null +++ b/docs/Makefile.ghpages @@ -0,0 +1,13 @@ +all: +ifndef VERSION +$(error VERSION is not set) +endif + rm -fr public resources generated + echo "- $(VERSION)" > data/releases.yaml + mkdir -p generated/docs + cp -r content/docs generated/docs/v$(VERSION) + hugo \ + --contentDir generated \ + --ignoreCache \ + --minify + tar czvf site.tar.gz -C public . \ No newline at end of file