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