DEBUG ?= 0 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 ' ' @echo 'Usage: ' @echo ' make dist - generate tarball ' @echo ' make clean - cleaunp ' @echo ' make demo - execute APP in local ' @echo ' ' @echo 'Set the DEBUG variable to 1 to enable debugging, e.g. make DEBUG=1 demo' all: dist # set markdown input format to "markdown-smart" for pandoc version 2 and to "markdown" for pandoc prior to version 2 MARKDOWN = $(shell if [ `pandoc -v | head -n1 | cut -d" " -f2 | head -c1` = "2" ]; then echo markdown-smart; else echo markdown; fi) README.txt: pandoc -f $(MARKDOWN) -t plain README.md -o README.txt pandoc -f $(MARKDOWN) -t plain Changelog.md -o Changelog.txt clean: 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 --create --lzip --file="$(PROJECT_NAME)-$(VERSION).tar.lz" --transform "s|^|$(PROJECT_NAME)/|" --owner 0 --group 0 \ --exclude '*.DS_Store' \ --exclude '*.kate-swp' \ --exclude '*.pyc' \ --exclude '*.pyo' \ --exclude '*~' \ --exclude '__pycache__' \ --exclude '.git' \ -- \ bin hypervideo_gui images setup-files LICENSE \ README.md README.txt Changelog.txt Makefile \ setup.py demo: @python script.py $(OPTS)