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