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