aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-09-02 00:06:50 +0200
committerMichael Muré <batolettre@gmail.com>2018-09-02 00:06:50 +0200
commit150b5d489c8573fe9214c11defbeeddedde48e16 (patch)
treeb969bb59a347c7c54dcf851ef4f8db085fe5c1f5 /Makefile
parent7397c94d993541b33e555b758ebdb8f61ff33c6c (diff)
downloadgit-bug-150b5d489c8573fe9214c11defbeeddedde48e16.tar.gz
invert the behavior of the build flag for the webui
Now produce by default a build with the packed webui, to make it go gettable properly. fix #33
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index e3aa5a55..4c1a040e 100644
--- a/Makefile
+++ b/Makefile
@@ -2,11 +2,11 @@ all: build
build:
go generate
- go build -tags=deploy_build .
+ go build .
install:
go generate
- go install -tags=deploy_build .
+ go install .
test:
go test -bench=. ./...
@@ -15,6 +15,10 @@ pack-webui:
npm run --prefix webui build
go run webui/pack_webui.go
+# produce a build that will fetch the web UI from the filesystem instead of from the binary
+debug-webui:
+ go build -tags=debugwebui
+
clean-local-bugs:
git for-each-ref refs/bugs/ | cut -f 2 | xargs -r -n 1 git update-ref -d
git for-each-ref refs/remotes/origin/bugs/ | cut -f 2 | xargs -r -n 1 git update-ref -d
@@ -22,4 +26,4 @@ clean-local-bugs:
clean-remote-bugs:
git ls-remote origin "refs/bugs/*" | cut -f 2 | xargs -r git push origin -d
-.PHONY: build install test pack-webui clean-local-bugs clean-remote-bugs
+.PHONY: build install test pack-webui debug-webui clean-local-bugs clean-remote-bugs