]> git.proxmox.com Git - proxmox-mini-journalreader.git/blob - Makefile
buildsys: use dpkg-dev make helpers for version and arch
[proxmox-mini-journalreader.git] / Makefile
1 include /usr/share/dpkg/pkg-info.mk
2 include /usr/share/dpkg/architecture.mk
3
4 PACKAGE := proxmox-mini-journalreader
5
6 GITVERSION:=$(shell git rev-parse HEAD)
7
8 DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_${DEB_BUILD_ARCH}.deb
9
10 all: $(DEB)
11
12 .PHONY: deb
13 deb: $(DEB)
14 $(DEB):
15 rm -rf build
16 rsync -a ./src/* build/
17 rsync -a ./debian build/
18 echo "git clone git://git.proxmox.com/git/pve-journalreader.git\\ngit checkout $(GITVERSION)" > build/debian/SOURCE
19 cd build; dpkg-buildpackage -b -us -uc
20 lintian $(DEB)
21
22 dinstall: $(DEB)
23 dpkg -i $(DEB)
24
25 .PHONY: clean
26 clean:
27 rm -rf build/ *.deb *.buildinfo *.changes