-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
49 lines (39 loc) · 921 Bytes
/
Makefile
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
PROJECT ?= rockchip-iqfiles
PREFIX ?= /usr
ETCDIR ?= /etc
BINDIR ?= $(PREFIX)/bin
LIBDIR ?= $(PREFIX)/lib
SHAREDIR ?= $(PREFIX)/share
MANDIR ?= $(SHAREDIR)/man
.PHONY: all
all: build
#
# Test
#
.PHONY: test
test:
#
# Clean
#
.PHONY: distclean
distclean: clean
.PHONY: clean
clean: clean-doc clean-deb
.PHONY: clean-doc
clean-doc:
rm -rf $(DOCS)
.PHONY: clean-deb
clean-deb:
rm -rf debian/.debhelper debian/${PROJECT} debian/debhelper-build-stamp debian/files debian/*.debhelper.log debian/*.postrm.debhelper debian/*.substvars
#
# Release
#
.PHONY: dch
dch: debian/changelog
EDITOR=true gbp dch --commit --debian-branch=main --release --dch-opt=--upstream
.PHONY: deb
deb: debian
debuild --no-lintian --lintian-hook "lintian --fail-on error,warning --suppress-tags bad-distribution-in-changes-file -- %p_%v_*.changes" --no-sign -b
.PHONY: release
release:
gh workflow run .github/workflows/new_version.yml