]>
Commit | Line | Data |
---|---|---|
9ce00d2f WL |
1 | include /usr/share/dpkg/pkg-info.mk |
2 | ||
3 | PACKAGE=libproxmox-acme-perl | |
4 | ||
5 | BUILDDIR ?= ${PACKAGE}-${DEB_VERSION_UPSTREAM} | |
6 | GITVERSION:=$(shell git rev-parse HEAD) | |
7 | ||
8 | DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb | |
9 | DSC=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.dsc | |
10 | ||
11 | all: $(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 | |
21 | deb: $(DEB) | |
22 | $(DEB): $(BUILDDIR) | |
23 | cd $(BUILDDIR); dpkg-buildpackage -b -us -uc | |
24 | lintian $(DEB) | |
25 | ||
26 | .PHONY: dsc | |
27 | dsc: ${DSC} | |
28 | ${DSC}: ${BUILDDIR} | |
29 | cd ${BUILDDIR}; dpkg-buildpackage -S -us -uc -d | |
30 | lintian ${DSC} | |
31 | ||
32 | dinstall: $(DEB) | |
33 | dpkg -i $(DEB) | |
34 | ||
35 | .PHONY: clean | |
36 | clean: | |
37 | rm -rf $(BUILDDIR) *.deb *.buildinfo *.changes *.dsc *.tar.gz | |
38 | ||
39 | .PHONY: upload | |
40 | upload: ${DEB} | |
41 | tar cf - ${DEB}|ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg --dist buster --arch ${DEB_BUILD_ARCH} |