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