mirror of
git://git.proxmox.com/git/proxmox-mini-journalreader.git
synced 2025-01-06 13:17:47 +03:00
e50a844d0d
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
36 lines
903 B
Makefile
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
|