From bd57e171dd0af0df11f43efdc65d98e22087044a Mon Sep 17 00:00:00 2001 From: June Tate-Gans Date: Sun, 23 May 2021 13:14:48 -0500 Subject: [PATCH] Add a makefile so we can easily build esoteric commands --- Makefile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..28414c2 --- /dev/null +++ b/Makefile @@ -0,0 +1,24 @@ +VERSION := `grep "VERSION" g13gui/common.py |awk '{ print $$2 }' |sed 's/'//g'` +GITBRANCH ?= master +PIPENV := pipenv +PYTHON := `which python3` +PIP := $(PYTHON) -m pip + + +all: + export GITBRANCH=master + debuild + debclean + +build: + gbp buildpackage --git-debian-branch=$(GITBRANCH) + +clean: + debclean + +build-source: clean + gbp buildpackage -S --git-debian-branch=$(GITBRANCH) + mkdir build + mv ../g13gui_$(VERSION)* build + +release: build-source