]> git.proxmox.com Git - pmg-log-tracker.git/blame - Makefile
correctly print newlines to separate entries
[pmg-log-tracker.git] / Makefile
CommitLineData
61b8223f
DM
1PACKAGE=pmg-log-tracker
2PKGVER=1.0
3PKGREL=1
4
5ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
6GITVERSION:=$(shell cat .git/refs/heads/master)
7
8DEB=${PACKAGE}_${PKGVER}-${PKGREL}_${ARCH}.deb
9
839951d6 10LIBS=$(shell pkg-config --libs glib-2.0) -lz
ae7d4778 11CFLAGS=$(shell pkg-config --cflags glib-2.0) -O2 -Wpedantic
839951d6 12
61b8223f 13all: ${DEB}
839951d6
DM
14
15pmg-log-tracker: pmg-log-tracker.c
16 gcc $< -o $@ ${CFLAGS} ${LIBS}
17
61b8223f
DM
18.PHONY: deb
19deb ${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
28dinstall: ${DEB}
29 dpkg -i ${DEB}
30
31.PHONY: upload
32upload: ${DEB} ${DBG_DEB}
33 tar cf - ${DEB} ${DBG_DEB}| ssh repoman@repo.proxmox.com -- upload --product pve --dist stretch --arch ${ARCH}
839951d6 34
c41a37e8
DM
35.PHONY: distclean
36distclean: clean
839951d6 37
c41a37e8
DM
38.PHONY: clean
39clean:
61b8223f 40 rm -rf build *.deb pmg-log-tracker *.buildinfo *.changes
c41a37e8 41 find . -name '*~' -exec rm {} ';'