aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2021-02-20 13:33:25 -0500
committerJesús <heckyel@hyperbola.info>2021-02-20 13:33:25 -0500
commit455948b905a7d27ccd5f16c17cf09fc6645253b6 (patch)
tree0218e8dbd8a3931362d942b1acb88e0388250b59
parentc55514b6e5fc588f66af4c8e11974d6e78f5e9e9 (diff)
downloadhypervideo-gui-455948b905a7d27ccd5f16c17cf09fc6645253b6.tar.lz
hypervideo-gui-455948b905a7d27ccd5f16c17cf09fc6645253b6.tar.xz
hypervideo-gui-455948b905a7d27ccd5f16c17cf09fc6645253b6.zip
[Makefile]: change compress file and add version tarball
-rw-r--r--Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index f1bd18d..711ca3c 100644
--- a/Makefile
+++ b/Makefile
@@ -3,6 +3,14 @@ ifeq ($(DEBUG), 1)
OPTS += -v
endif
+PROJECT_NAME = hypervideo-gui
+
+V_MAJOR = 1
+V_MINOR = 0
+V_PATCH = 3
+V_EXTRA =
+VERSION = $(V_MAJOR).$(V_MINOR).$(V_PATCH)$(V_EXTRA)
+
help:
@echo 'Makefile for generate tarball to Hypervideo GUI '
@echo ' '
@@ -23,12 +31,12 @@ README.txt:
pandoc -f $(MARKDOWN) -t plain Changelog.md -o Changelog.txt
clean:
- rm -rf hypervideo-gui.tar.gz hypervideo_gui.egg-info README.txt Changelog.txt MANIFEST build/ dist/
+ rm -rf $(PROJECT_NAME)-$(VERSION).tar.lz hypervideo_gui.egg-info README.txt Changelog.txt MANIFEST build/ dist/ || true
find . -name "*.pyc" -delete
find . -name "*.class" -delete
dist: README.txt
- @tar -czf hypervideo-gui.tar.gz --transform "s|^|hypervideo-gui/|" --owner 0 --group 0 \
+ @tar --create --lzip --file="$(PROJECT_NAME)-$(VERSION).tar.lz" --transform "s|^|$(PROJECT_NAME)/|" --owner 0 --group 0 \
--exclude '*.DS_Store' \
--exclude '*.kate-swp' \
--exclude '*.pyc' \