summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2017-09-06 19:23:50 +0300
committerIgor Sysoev <igor@sysoev.ru>2017-09-06 19:23:50 +0300
commit89df39374c69f893570fa64755f9b91200903542 (patch)
treea17eb811d2a60af91475fddad0516d9dae1bbe8a
parent26dfd4da97c09e68a8101aa7e6b4f4c3515f794f (diff)
downloadunit-89df39374c69f893570fa64755f9b91200903542.tar.gz
unit-89df39374c69f893570fa64755f9b91200903542.tar.bz2
Added the dist target in Makefile.
Diffstat (limited to '')
-rw-r--r--auto/make11
1 files changed, 11 insertions, 0 deletions
diff --git a/auto/make b/auto/make
index 742df11a..a50f64ea 100644
--- a/auto/make
+++ b/auto/make
@@ -239,6 +239,8 @@ END
cat << END > Makefile
+NXT_VERSION = 0.1
+
include $NXT_MAKEFILE
.PHONY: tests
@@ -247,4 +249,13 @@ tests: $NXT_BUILD_DIR/tests $NXT_BUILD_DIR/utf8_file_name_test
clean:
rm -rf $NXT_BUILD_DIR *.dSYM Makefile
+dist:
+ rm -f unit-\$(NXT_VERSION).tar.gz
+ mkdir unit-\$(NXT_VERSION)
+ cp -rp LICENSE NOTICE CHANGES README.md \\
+ configure auto src test \\
+ unit-\$(NXT_VERSION)
+ tar czf unit-\$(NXT_VERSION).tar.gz unit-\$(NXT_VERSION)
+ rm -rf unit-\$(NXT_VERSION)
+
END