]> git.proxmox.com Git - proxmox-acme.git/blame - Makefile
Implement feature setup and teardown functionality.
[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
11all: $(DEB)
12
13$(BUILDDIR): src debian
14 rm -rf $(BUILDDIR)
92b88a9e 15
9ce00d2f
WL
16 rsync -a src/ debian $(BUILDDIR)
17 # remove if repository exists
18 # echo "git clone git://git.proxmox.com/git/proxmox-acme\\ngit checkout $(GITVERSION)" > $(BUILDDIR)/debian/SOURCE
19
20.PHONY: deb
21deb: $(DEB)
22$(DEB): $(BUILDDIR)
23 cd $(BUILDDIR); dpkg-buildpackage -b -us -uc
24 lintian $(DEB)
25
26.PHONY: dsc
27dsc: ${DSC}
28${DSC}: ${BUILDDIR}
29 cd ${BUILDDIR}; dpkg-buildpackage -S -us -uc -d
30 lintian ${DSC}
31
32dinstall: $(DEB)
33 dpkg -i $(DEB)
34
35.PHONY: clean
36clean:
37 rm -rf $(BUILDDIR) *.deb *.buildinfo *.changes *.dsc *.tar.gz
38
39.PHONY: upload
40upload: ${DEB}
41 tar cf - ${DEB}|ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg --dist buster --arch ${DEB_BUILD_ARCH}