]> git.proxmox.com Git - ifupdown2.git/blame - Makefile
add debian dir
[ifupdown2.git] / Makefile
CommitLineData
51419183
AD
1PACKAGE=ifupdown2
2VER=1.1
5c3a0ef4 3PKGREL=2.0
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)
26 cp -rpa ${SRCDIR} ${BUILDDIR}
27 cp -a debian ${BUILDDIR}
28 cd ${BUILDDIR}; dpkg-buildpackage -rfakeroot -b -uc -us
29
30#.PHONY: download
31#download ${SRCDIR}:
32# git submodule foreach 'git pull --ff-only origin master'
33
34.PHONY: upload
35upload: ${DEB}
36 tar cf - ${DEB}|ssh -X repoman@repo.proxmox.com -- upload --product pmg,pve --dist stretch
37
38.PHONY: distclean
39distclean: clean
40
41.PHONY: clean
42clean:
43 rm -rf *~ debian/*~ *.deb ${BUILDDIR} *.changes *.dsc *.buildinfo
44
45.PHONY: dinstall
46dinstall: deb
47 dpkg -i ${DEB}