chore: add more command for makefile. (#54)
Co-authored-by: 吴晟 Wu Sheng <wu.sheng@foxmail.com>
diff --git a/Makefile b/Makefile
index 19f695d..4264698 100644
--- a/Makefile
+++ b/Makefile
@@ -18,6 +18,23 @@
VERSION ?= latest
RELEASE_SRC = skywalking-nginx-lua-${VERSION}-src
+.PHONY: default
+default: release-src
+
+### test: Run test suite. Use test=... for specific tests
+.PHONY: test
+test:
+ prove -I. -r -s t
+
+### help: Show Makefile rules
+.PHONY: help
+help:
+ @echo Makefile rules:
+ @echo
+ @grep -E '^### [-A-Za-z0-9_]+:' Makefile | sed 's/###/ /'
+
+### release-src: Release source code
+.PHONY: release-src
release-src:
tar -zcvf $(RELEASE_SRC).tgz \
--exclude bin \
@@ -34,4 +51,4 @@
mkdir -p release
mv $(RELEASE_SRC).tgz release/$(RELEASE_SRC).tgz
mv $(RELEASE_SRC).tgz.asc release/$(RELEASE_SRC).tgz.asc
- mv $(RELEASE_SRC).tgz.sha512 release/$(RELEASE_SRC).tgz.sha512
\ No newline at end of file
+ mv $(RELEASE_SRC).tgz.sha512 release/$(RELEASE_SRC).tgz.sha512