5
0
mirror of git://git.proxmox.com/git/pve-common.git synced 2025-01-03 09:17:36 +03:00

makefile: convert to use simple parenthesis

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2023-05-17 08:50:37 +02:00
parent 83546e0e0b
commit a9fa415783

View File

@ -4,35 +4,35 @@ PACKAGE=libpve-common-perl
ARCH=all ARCH=all
BUILDDIR ?= ${PACKAGE}-${DEB_VERSION_UPSTREAM} BUILDDIR ?= $(PACKAGE)-$(DEB_VERSION_UPSTREAM)
DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_${ARCH}.deb DEB=$(PACKAGE)_$(DEB_VERSION_UPSTREAM_REVISION)_$(ARCH).deb
DSC=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.dsc DSC=$(PACKAGE)_$(DEB_VERSION_UPSTREAM_REVISION).dsc
all: all:
${MAKE} -C src $(MAKE) -C src
.PHONY: dinstall .PHONY: dinstall
dinstall: deb dinstall: deb
dpkg -i ${DEB} dpkg -i $(DEB)
${BUILDDIR}: src debian test $(BUILDDIR): src debian test
rm -rf ${BUILDDIR} ${BUILDDIR}.tmp; mkdir ${BUILDDIR}.tmp rm -rf $(BUILDDIR) $(BUILDDIR).tmp; mkdir $(BUILDDIR).tmp
cp -a -t ${BUILDDIR}.tmp $^ Makefile cp -a -t $(BUILDDIR).tmp $^ Makefile
echo "git clone git://git.proxmox.com/git/pve-common.git\\ngit checkout $(shell git rev-parse HEAD)" > ${BUILDDIR}.tmp/debian/SOURCE echo "git clone git://git.proxmox.com/git/pve-common.git\\ngit checkout $(shell git rev-parse HEAD)" > $(BUILDDIR).tmp/debian/SOURCE
mv ${BUILDDIR}.tmp ${BUILDDIR} mv $(BUILDDIR).tmp $(BUILDDIR)
.PHONY: deb .PHONY: deb
deb: ${DEB} deb: $(DEB)
${DEB}: ${BUILDDIR} $(DEB): $(BUILDDIR)
cd ${BUILDDIR}; dpkg-buildpackage -b -us -uc cd $(BUILDDIR); dpkg-buildpackage -b -us -uc
lintian ${DEB} lintian $(DEB)
.PHONY: dsc .PHONY: dsc
dsc: ${DSC} dsc: $(DSC)
${DSC}: ${BUILDDIR} $(DSC): $(BUILDDIR)
cd ${BUILDDIR}; dpkg-buildpackage -S -us -uc -d cd $(BUILDDIR); dpkg-buildpackage -S -us -uc -d
lintian ${DSC} lintian $(DSC)
sbuild: $(DSC) sbuild: $(DSC)
sbuild $(DSC) sbuild $(DSC)
@ -40,7 +40,7 @@ sbuild: $(DSC)
.PHONY: clean distclean .PHONY: clean distclean
distclean: clean distclean: clean
clean: clean:
rm -rf *~ *.deb *.changes ${PACKAGE}-[0-9]*/ *.buildinfo *.build *.dsc *.tar.?z rm -rf *~ *.deb *.changes $(PACKAGE)-[0-9]*/ *.buildinfo *.build *.dsc *.tar.?z
.PHONY: check .PHONY: check
check: check:
@ -48,9 +48,9 @@ check:
.PHONY: install .PHONY: install
install: install:
${MAKE} -C src install $(MAKE) -C src install
.PHONY: upload .PHONY: upload
upload: UPLOAD_DIST ?= $(DEB_DISTRIBUTION) upload: UPLOAD_DIST ?= $(DEB_DISTRIBUTION)
upload: ${DEB} upload: $(DEB)
tar cf - ${DEB}|ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg --dist $(UPLOAD_DIST) tar cf - $(DEB)|ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg --dist $(UPLOAD_DIST)