]> git.proxmox.com Git - pmg-log-tracker.git/blob - Makefile
bump version to 2.5.0
[pmg-log-tracker.git] / Makefile
1 PACKAGE=pmg-log-tracker
2 PKGVER=1.0
3 PKGREL=1
4
5 ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
6 GITVERSION:=$(shell cat .git/refs/heads/master)
7
8 DEB=${PACKAGE}_${PKGVER}-${PKGREL}_${ARCH}.deb
9
10 LIBS=$(shell pkg-config --libs glib-2.0) -lz
11 CFLAGS=$(shell pkg-config --cflags glib-2.0) -O2 -Wpedantic
12
13 all: ${DEB}
14
15 pmg-log-tracker: pmg-log-tracker.c
16 gcc $< -o $@ ${CFLAGS} ${LIBS}
17
18 .PHONY: deb
19 deb ${DEB}: pmg-log-tracker
20 rm -f *.deb
21 rm -rf build
22 install -D -m 0755 pmg-log-tracker build/usr/bin/pmg-log-tracker
23 cp -a debian build/debian
24 cd build; dpkg-buildpackage -rfakeroot -b -us -uc
25 lintian ${DEB}
26
27 .PHONY: dinstall
28 dinstall: ${DEB}
29 dpkg -i ${DEB}
30
31 .PHONY: upload
32 upload: ${DEB} ${DBG_DEB}
33 tar cf - ${DEB} ${DBG_DEB}| ssh repoman@repo.proxmox.com -- upload --product pmg --dist stretch --arch ${ARCH}
34
35 .PHONY: distclean
36 distclean: clean
37
38 .PHONY: clean
39 clean:
40 rm -rf build *.deb pmg-log-tracker *.buildinfo *.changes
41 find . -name '*~' -exec rm {} ';'