forked from dhtech/dhmon
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (24 loc) · 883 Bytes
/
Makefile
File metadata and controls
29 lines (24 loc) · 883 Bytes
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
26
27
28
29
TAG=$(shell git name-rev --tags --name-only $(shell git rev-parse HEAD))
VERSION=$(shell echo $(TAG) | grep -o 'v[0-9\.]*' \
| sed -E 's/^v([0-9\.]+)/-N \1-1/')
BRANCH=$(shell git rev-parse --abbrev-ref HEAD)
TREE=$(shell test $(TAG) = undefined && echo $(BRANCH) || echo $(TAG))
distclean:
clean install all:
(test $@ = clean && rm -f .coverage) || true
make -C $(CURDIR)/deps/ $@
make -C $(CURDIR)/src/ $@
test:
coverage erase
TESTBASE=$(CURDIR) make -C $(CURDIR)/src/ $@
coverage combine
coverage report -m
deb:
echo Using $(TREE)
git checkout $(TREE)
cp debian/changelog debian/changelog.old
rm -f ../dhmon_*.orig.tar.gz
gbp dch --snapshot --auto --ignore-branch $(VERSION)
gbp buildpackage --git-upstream-tree=$(TREE) --git-submodules \
--git-ignore-new --git-ignore-branch --git-builder='debuild -i -I -us -uc'
mv debian/changelog.old debian/changelog