]> git.proxmox.com Git - proxmox-acme.git/blame - Makefile
move DNS plugin schema to separate JSON based file
[proxmox-acme.git] / Makefile
CommitLineData
9ce00d2f
WL
1include /usr/share/dpkg/pkg-info.mk
2
3PACKAGE=libproxmox-acme-perl
4
5BUILDDIR ?= ${PACKAGE}-${DEB_VERSION_UPSTREAM}
6GITVERSION:=$(shell git rev-parse HEAD)
7
8DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
9DSC=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.dsc
10
9bd9d7a7 11ACME_SUBMODULE="src/acme.sh"
20569605 12
9ce00d2f
WL
13all: $(DEB)
14
20569605
WL
15.PHONY: submodule
16submodule:
9bd9d7a7 17 test -d ${ACME_SUBMODULE}/README.md || git submodule update --init --recursive
92b88a9e 18
9bd9d7a7
TL
19${BUILDDIR}: src debian submodule
20 rm -rf ${BUILDDIR}.tmp
21 cp -a src ${BUILDDIR}.tmp
22 cp -a debian ${BUILDDIR}.tmp/
23 echo "git clone git://git.proxmox.com/git/proxmox-acme\\ngit checkout ${GITVERSION}" > ${BUILDDIR}.tmp/debian/SOURCE
24 mv ${BUILDDIR}.tmp ${BUILDDIR}
9ce00d2f
WL
25
26.PHONY: deb
9bd9d7a7
TL
27deb: ${DEB}
28${DEB}: ${BUILDDIR}
29 cd ${BUILDDIR}; dpkg-buildpackage -b -us -uc
30 lintian ${DEB}
9ce00d2f
WL
31
32.PHONY: dsc
33dsc: ${DSC}
34${DSC}: ${BUILDDIR}
35 cd ${BUILDDIR}; dpkg-buildpackage -S -us -uc -d
36 lintian ${DSC}
37
9bd9d7a7
TL
38dinstall: ${DEB}
39 dpkg -i ${DEB}
9ce00d2f
WL
40
41.PHONY: clean
42clean:
c69fdfe9 43 rm -rf ${PACKAGE}-*/ ${BUILDDIR}.tmp *.deb *.buildinfo *.changes *.dsc *.tar.?z
9ce00d2f
WL
44
45.PHONY: upload
46upload: ${DEB}
47 tar cf - ${DEB}|ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg --dist buster --arch ${DEB_BUILD_ARCH}