]> git.proxmox.com Git - proxmox-mini-journalreader.git/blob - Makefile
rename to mini-journalreader
[proxmox-mini-journalreader.git] / Makefile
1 PACKAGE := proxmox-mini-journalreader
2
3 ARCH != dpkg-architecture -qDEB_BUILD_ARCH
4 PKGVER != dpkg-parsechangelog -S version
5 GITVERSION:=$(shell git rev-parse HEAD)
6
7 DEB=${PACKAGE}_${PKGVER}_${ARCH}.deb
8
9 all: $(DEB)
10
11 .PHONY: deb
12 deb: $(DEB)
13 $(DEB):
14 rm -rf build
15 rsync -a ./src/* build/
16 rsync -a ./debian build/
17 echo "git clone git://git.proxmox.com/git/pve-journalreader.git\\ngit checkout $(GITVERSION)" > build/debian/SOURCE
18 cd build; dpkg-buildpackage -b -us -uc
19 lintian $(DEB)
20
21 dinstall: $(DEB)
22 dpkg -i $(DEB)
23
24 .PHONY: clean
25 clean:
26 rm -rf build/ *.deb *.buildinfo *.changes