Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/client9/reopen/Makefile')
-rw-r--r--vendor/github.com/client9/reopen/Makefile27
1 files changed, 27 insertions, 0 deletions
diff --git a/vendor/github.com/client9/reopen/Makefile b/vendor/github.com/client9/reopen/Makefile
new file mode 100644
index 00000000..81eb6214
--- /dev/null
+++ b/vendor/github.com/client9/reopen/Makefile
@@ -0,0 +1,27 @@
+
+build: hooks ## build and lint
+ ./scripts/build.sh
+
+test: ## just test
+ go test -cover .
+
+clean: ## cleanup
+ rm -f ./example1/example1
+ rm -f ./example2/example2
+ go clean ./...
+ git gc
+
+# https://www.client9.com/automatically-install-git-hooks/
+.git/hooks/pre-commit: scripts/pre-commit.sh
+ cp -f scripts/pre-commit.sh .git/hooks/pre-commit
+.git/hooks/commit-msg: scripts/commit-msg.sh
+ cp -f scripts/commit-msg.sh .git/hooks/commit-msg
+hooks: .git/hooks/pre-commit .git/hooks/commit-msg ## install git precommit hooks
+
+# https://www.client9.com/self-documenting-makefiles/
+help:
+ @awk -F ':|##' '/^[^\t].+?:.*?##/ {\
+ printf "\033[36m%-30s\033[0m %s\n", $$1, $$NF \
+ }' $(MAKEFILE_LIST)
+.DEFAULT_GOAL=help
+.PHONY=help