mirror of
https://git.proxmox.com/git/pve-common
synced 2025-07-16 20:20:34 +00:00
build: split deb target into deb and src
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com> Acked-by: Thomas Lamprecht <t.lamprecht@proxmox.com> Acked-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
0c0bcf7cdc
commit
b1766d78d3
28
Makefile
28
Makefile
@ -9,32 +9,46 @@ GITVERSION:=$(shell git rev-parse HEAD)
|
|||||||
BUILDDIR ?= build
|
BUILDDIR ?= build
|
||||||
|
|
||||||
DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb
|
DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb
|
||||||
|
DSC=${PACKAGE}_${VERSION}-${PKGREL}.dsc
|
||||||
|
TARGZ=${PACKAGE}_${VERSION}-${PKGREL}.tar.gz
|
||||||
|
|
||||||
all: ${DEB}
|
all:
|
||||||
|
${MAKE} -C src
|
||||||
|
|
||||||
.PHONY: dinstall
|
.PHONY: dinstall
|
||||||
dinstall: deb
|
dinstall: deb
|
||||||
dpkg -i ${DEB}
|
dpkg -i ${DEB}
|
||||||
|
|
||||||
|
${BUILDDIR}: src debian
|
||||||
|
rm -rf ${BUILDDIR}
|
||||||
|
rsync -a * ${BUILDDIR}
|
||||||
|
echo "git clone git://git.proxmox.com/git/pve-common.git\\ngit checkout ${GITVERSION}" > ${BUILDDIR}/debian/SOURCE
|
||||||
|
|
||||||
.PHONY: deb
|
.PHONY: deb
|
||||||
deb ${DEB}: check
|
deb: ${DEB}
|
||||||
rm -rf ${BUILDDIR}
|
${DEB}: ${BUILDDIR}
|
||||||
rsync -a src/ ${BUILDDIR}
|
|
||||||
rsync -a debian/ ${BUILDDIR}/debian
|
|
||||||
echo "git clone git://git.proxmox.com/git/pve-common.git\\ngit checkout ${GITVERSION}" > ${BUILDDIR}/debian/SOURCE
|
|
||||||
cd ${BUILDDIR}; dpkg-buildpackage -b -us -uc
|
cd ${BUILDDIR}; dpkg-buildpackage -b -us -uc
|
||||||
lintian ${DEB}
|
lintian ${DEB}
|
||||||
|
|
||||||
|
.PHONY: dsc
|
||||||
|
dsc ${TARGZ}: ${DSC}
|
||||||
|
${DSC}: ${BUILDDIR}
|
||||||
|
cd ${BUILDDIR}; dpkg-buildpackage -S -us -uc -d -nc
|
||||||
|
lintian ${DSC}
|
||||||
|
|
||||||
.PHONY: clean distclean
|
.PHONY: clean distclean
|
||||||
distclean: clean
|
distclean: clean
|
||||||
clean:
|
clean:
|
||||||
rm -rf *~ *.deb *.changes ${BUILDDIR} *.buildinfo
|
rm -rf *~ *.deb *.changes ${BUILDDIR} *.buildinfo *.dsc *.tar.gz
|
||||||
|
|
||||||
.PHONY: check
|
.PHONY: check
|
||||||
check:
|
check:
|
||||||
$(MAKE) -C test check
|
$(MAKE) -C test check
|
||||||
|
|
||||||
|
.PHONY: install
|
||||||
|
install:
|
||||||
|
${MAKE} -C src install
|
||||||
|
|
||||||
.PHONY: upload
|
.PHONY: upload
|
||||||
upload: ${DEB}
|
upload: ${DEB}
|
||||||
tar cf - ${DEB}|ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg --dist stretch
|
tar cf - ${DEB}|ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg --dist stretch
|
||||||
|
Loading…
Reference in New Issue
Block a user