]>
Commit | Line | Data |
---|---|---|
8a27e4a4 | 1 | include /usr/share/dpkg/pkg-info.mk |
e143e9d8 DM |
2 | |
3 | PACKAGE=libpve-common-perl | |
4 | ||
e143e9d8 | 5 | ARCH=all |
b98a06a3 | 6 | |
8a27e4a4 | 7 | BUILDDIR ?= ${PACKAGE}-${DEB_VERSION_UPSTREAM} |
dbaa6e52 | 8 | |
8a27e4a4 TL |
9 | DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_${ARCH}.deb |
10 | DSC=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.dsc | |
11 | TARGZ=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.tar.gz | |
e143e9d8 | 12 | |
b1766d78 FG |
13 | all: |
14 | ${MAKE} -C src | |
e143e9d8 DM |
15 | |
16 | .PHONY: dinstall | |
17 | dinstall: deb | |
18 | dpkg -i ${DEB} | |
19 | ||
b1766d78 | 20 | ${BUILDDIR}: src debian |
dbaa6e52 | 21 | rm -rf ${BUILDDIR} |
b1766d78 | 22 | rsync -a * ${BUILDDIR} |
c11de017 | 23 | echo "git clone git://git.proxmox.com/git/pve-common.git\\ngit checkout $(shell git rev-parse HEAD)" > ${BUILDDIR}/debian/SOURCE |
b1766d78 FG |
24 | |
25 | .PHONY: deb | |
26 | deb: ${DEB} | |
27 | ${DEB}: ${BUILDDIR} | |
dbaa6e52 | 28 | cd ${BUILDDIR}; dpkg-buildpackage -b -us -uc |
e143e9d8 DM |
29 | lintian ${DEB} |
30 | ||
b1766d78 FG |
31 | .PHONY: dsc |
32 | dsc ${TARGZ}: ${DSC} | |
33 | ${DSC}: ${BUILDDIR} | |
34 | cd ${BUILDDIR}; dpkg-buildpackage -S -us -uc -d -nc | |
35 | lintian ${DSC} | |
36 | ||
82ad3144 | 37 | .PHONY: clean distclean |
e143e9d8 | 38 | distclean: clean |
82ad3144 | 39 | clean: |
b1766d78 | 40 | rm -rf *~ *.deb *.changes ${BUILDDIR} *.buildinfo *.dsc *.tar.gz |
e143e9d8 | 41 | |
936218b8 WB |
42 | .PHONY: check |
43 | check: | |
44 | $(MAKE) -C test check | |
e143e9d8 | 45 | |
b1766d78 FG |
46 | .PHONY: install |
47 | install: | |
48 | ${MAKE} -C src install | |
49 | ||
e143e9d8 DM |
50 | .PHONY: upload |
51 | upload: ${DEB} | |
4d7b1156 | 52 | tar cf - ${DEB}|ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg --dist buster |