5
0
mirror of git://git.proxmox.com/git/proxmox-mini-journalreader.git synced 2025-01-06 13:17:47 +03:00
proxmox-mini-journalreader/Makefile
Thomas Lamprecht e50a844d0d buildsys: add upload target
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-05-14 12:01:47 +00:00

36 lines
903 B
Makefile

include /usr/share/dpkg/pkg-info.mk
include /usr/share/dpkg/architecture.mk
PACKAGE := proxmox-mini-journalreader
GITVERSION:=$(shell git rev-parse HEAD)
BUILDDIR ?= ${PACKAGE}-${DEB_VERSION_UPSTREAM}
DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_${DEB_BUILD_ARCH}.deb
DBGDEB=${PACKAGE}-dbgsym_${DEB_VERSION_UPSTREAM_REVISION}_${DEB_BUILD_ARCH}.deb
all: $(DEB)
$(BUILDDIR): src debian
rm -rf $(BUILDDIR)
rsync -a src/ debian $(BUILDDIR)
echo "git clone git://git.proxmox.com/git/proxmox-mini-journal\\ngit checkout $(GITVERSION)" > $(BUILDDIR)/debian/SOURCE
.PHONY: deb
deb: $(DEB)
$(DEB): $(BUILDDIR)
cd $(BUILDDIR); dpkg-buildpackage -b -us -uc
lintian $(DEB)
dinstall: $(DEB)
dpkg -i $(DEB)
.PHONY: clean
clean:
rm -rf $(BUILDDIR) *.deb *.buildinfo *.changes
.PHONY: upload
upload: ${DEB}
tar cf - ${DEB}|ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg --dist stretch