]> git.proxmox.com Git - proxmox-mini-journalreader.git/blame - Makefile
buildsys: add dinstall target
[proxmox-mini-journalreader.git] / Makefile
CommitLineData
4ce2e883
DC
1PACKAGE := pve-journalreader
2
3ARCH != dpkg-architecture -qDEB_BUILD_ARCH
4PKGVER != dpkg-parsechangelog -S version
5GITVERSION:=$(shell git rev-parse HEAD)
6
4ce2e883
DC
7DEB=${PACKAGE}_${PKGVER}_${ARCH}.deb
8
6e76d122
TL
9all: $(DEB)
10
4ce2e883
DC
11.PHONY: deb
12deb: $(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
c6e5c747
TL
21dinstall: $(DEB)
22 dpkg -i $(DEB)
23
4ce2e883
DC
24.PHONY: clean
25clean:
26 rm -rf build/ *.deb *.buildinfo *.changes