]> git.proxmox.com Git - ifupdown2.git/blame - Makefile
bump version to 2.0.0-1~pvetest2
[ifupdown2.git] / Makefile
CommitLineData
51419183 1PACKAGE=ifupdown2
7b2bbdf7 2VER=2.0.0
17a9c9e5 3PKGREL=1~pvetest2
51419183
AD
4
5SRCDIR=ifupdown2
6BUILDDIR=${SRCDIR}.tmp
7
8ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
9
10GITVERSION:=$(shell git rev-parse HEAD)
11
12DEB=${PACKAGE}_${VER}-${PKGREL}_${ARCH}.deb
13
14all: ${DEB}
15 @echo ${DEB}
16
17.PHONY: submodule
18submodule:
19 test -f "${SRCDIR}/debian/changelog" || git submodule update --init
20
21.PHONY: deb
22deb: ${DEB}
23${DEB}: | submodule
24 rm -f *.deb
25 rm -rf $(BUILDDIR)
7b2bbdf7
WB
26 mkdir $(BUILDDIR)
27 cp -a $(SRCDIR)/* $(BUILDDIR)/
28 cp -R debian/* $(BUILDDIR)/debian/
51419183
AD
29 cd ${BUILDDIR}; dpkg-buildpackage -rfakeroot -b -uc -us
30
51419183
AD
31.PHONY: upload
32upload: ${DEB}
a8f5ae8d 33 tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pve --dist stretch
51419183
AD
34
35.PHONY: distclean
36distclean: clean
37
38.PHONY: clean
39clean:
a8f5ae8d 40 rm -rf ${BUILDDIR} *.deb *.changes *.dsc *.buildinfo
51419183
AD
41
42.PHONY: dinstall
43dinstall: deb
44 dpkg -i ${DEB}