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