]>
Commit | Line | Data |
---|---|---|
1 | include /usr/share/dpkg/pkg-info.mk | |
2 | export DEB_VERSION_UPSTREAM_REVISION | |
3 | ||
4 | export PACKAGE=proxmox-widget-toolkit | |
5 | BUILDDIR ?= ${PACKAGE}-${DEB_VERSION_UPSTREAM} | |
6 | DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb | |
7 | DSC=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.dsc | |
8 | ||
9 | GITVERSION:=$(shell git rev-parse HEAD) | |
10 | ||
11 | ${BUILDDIR}: | |
12 | rm -rf ${BUILDDIR} ${BUILDDIR}.tmp | |
13 | cp -a src/ ${BUILDDIR}.tmp | |
14 | cp -a debian ${BUILDDIR}.tmp/ | |
15 | echo "git clone git://git.proxmox.com/git/proxmox-widget-toolkit.git\\ngit checkout ${GITVERSION}" > ${BUILDDIR}.tmp/debian/SOURCE | |
16 | mv ${BUILDDIR}.tmp/ ${BUILDDIR} | |
17 | ||
18 | .PHONY: deb | |
19 | deb: ${DEB} | |
20 | ${DEB}: ${BUILDDIR} | |
21 | cd ${BUILDDIR}; dpkg-buildpackage -b -us -uc | |
22 | lintian ${DEB} | |
23 | ||
24 | .PHONY: dsc | |
25 | dsc: ${DSC} | |
26 | ${DSC}: ${BUILDDIR} | |
27 | cd ${BUILDDIR}; dpkg-buildpackage -S -us -uc -d | |
28 | lintian ${DSC} | |
29 | ||
30 | .PHONY: lint | |
31 | lint: ${JSSRC} | |
32 | ${MAKE} -C src lint | |
33 | ||
34 | .PHONY: upload | |
35 | upload: ${DEB} | |
36 | tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg,pbs --dist buster | |
37 | ||
38 | distclean: clean | |
39 | clean: | |
40 | $(MAKE) -C src clean | |
41 | rm -rf ${BUILDDIR} ${BUILDDIR}.tmp *.tar.gz *.dsc *.deb *.changes *.buildinfo | |
42 | find . -name '*~' -exec rm {} ';' | |
43 | ||
44 | .PHONY: dinstall | |
45 | dinstall: ${DEB} | |
46 | dpkg -i ${DEB} |