summarylogtreecommitdiffstats
path: root/Makefile
blob: b80aca4b550e09dcf06eb55c74b2168267f81abc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
.PHONY: upload

remote = github
repo = https://github.com/XKNX/xknx.git
branch = main

version: FORCE
	git remote show $(remote) || git remote add $(remote) $(repo)
	git fetch $(remote)
	git describe --tags $(remote)/$(branch) | cut -d- -f1 > $@

FORCE:
	

PKGBUILD: version

%: %.in
	m4 $< > $*

.SRCINFO: PKGBUILD
	mksrcinfo

upload: .SRCINFO
	git commit -am "`cat version`"
	git push