mirror of
https://github.com/jtgans/g13gui.git
synced 2025-07-11 03:39:00 -04:00
Make makefile more distro generic
This commit is contained in:
parent
dc7986f4fd
commit
5dd39e4eee
25
Makefile
25
Makefile
@ -2,23 +2,36 @@ VERSION := `grep "VERSION" g13gui/common.py |awk '{ print $$2 }' |sed 's/'//g'
|
|||||||
GITBRANCH ?= master
|
GITBRANCH ?= master
|
||||||
PIPENV := pipenv
|
PIPENV := pipenv
|
||||||
PYTHON := `which python3`
|
PYTHON := `which python3`
|
||||||
PIP := $(PYTHON) -m pip
|
PIP := ${PYTHON} -m pip
|
||||||
|
|
||||||
|
DISTRO := $(shell \
|
||||||
|
lsb_release -i \
|
||||||
|
|awk -F: '{ print $$2 }' \
|
||||||
|
|sed -e 's/[ \t]*//g' \
|
||||||
|
|tr '[A-Z]' '[a-z]' \
|
||||||
|
|sed -e 's/linux//g')
|
||||||
|
|
||||||
all:
|
$(warning Building on ${DISTRO})
|
||||||
|
|
||||||
|
all: ${DISTRO}
|
||||||
|
|
||||||
|
manjaro:
|
||||||
|
makepkg
|
||||||
|
|
||||||
|
debian:
|
||||||
export GITBRANCH=master
|
export GITBRANCH=master
|
||||||
debuild
|
debuild
|
||||||
debclean
|
debclean
|
||||||
|
|
||||||
build:
|
debian-build:
|
||||||
gbp buildpackage --git-debian-branch=$(GITBRANCH)
|
gbp buildpackage --git-debian-branch=$(GITBRANCH)
|
||||||
|
|
||||||
clean:
|
debian-clean:
|
||||||
debclean
|
debclean
|
||||||
|
|
||||||
build-source: clean
|
debian-build-source: debian-clean
|
||||||
gbp buildpackage -S --git-debian-branch=$(GITBRANCH)
|
gbp buildpackage -S --git-debian-branch=$(GITBRANCH)
|
||||||
mkdir build
|
mkdir build
|
||||||
mv ../g13gui_$(VERSION)* build
|
mv ../g13gui_$(VERSION)* build
|
||||||
|
|
||||||
release: build-source
|
debian-release: debian-build-source
|
||||||
|
Loading…
Reference in New Issue
Block a user