]>
Commit | Line | Data |
---|---|---|
a9fc6893 | 1 | include /usr/share/dpkg/pkg-info.mk |
a9fc6893 | 2 | |
d8218001 | 3 | PACKAGE=libpve-http-server-perl |
d8218001 | 4 | |
a9fc6893 TL |
5 | GITVERSION:=$(shell git rev-parse HEAD) |
6 | BUILDDIR ?= ${PACKAGE}-${DEB_VERSION_UPSTREAM} | |
7 | ||
8 | DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb | |
d8218001 | 9 | |
5a554403 | 10 | all: |
d8218001 DM |
11 | |
12 | .PHONY: deb | |
e4bce23e WB |
13 | deb: ${DEB} |
14 | ${DEB}: | |
a9fc6893 | 15 | rm -rf ${BUILDDIR} |
f8f97c8d TL |
16 | cp -a src ${BUILDDIR} |
17 | cp -a debian ${BUILDDIR}/ | |
a9fc6893 TL |
18 | echo "git clone git://git.proxmox.com/git/pve-http-server\\ngit checkout $(GITVERSION)" > $(BUILDDIR)/debian/SOURCE |
19 | cd ${BUILDDIR}; dpkg-buildpackage -b -us -uc | |
d8218001 DM |
20 | lintian ${DEB} |
21 | ||
d8218001 DM |
22 | .PHONY: upload |
23 | upload: ${DEB} | |
46b962f6 | 24 | tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg --dist bullseye |
d8218001 | 25 | |
584d34a7 | 26 | .PHONY: clean distclean |
d8218001 | 27 | distclean: clean |
f8f97c8d | 28 | ${MAKE} -C src $@ |
d8218001 DM |
29 | |
30 | clean: | |
f8f97c8d | 31 | ${MAKE} -C src $@ |
8a29f1fc | 32 | rm -rf ${PACKAGE}-*/ *.deb *.changes *.buildinfo ${BTDIR} examples/simple-demo.lck |
d8218001 DM |
33 | find . -name '*~' -exec rm {} ';' |
34 | ||
35 | .PHONY: dinstall | |
36 | dinstall: ${DEB} | |
37 | dpkg -i ${DEB} |