mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-05-29 06:46:34 +00:00
makefile: convert to use simple parenthesis
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
da639fb2ae
commit
c7dca629bb
57
Makefile
57
Makefile
@ -3,49 +3,48 @@ export DEB_VERSION_UPSTREAM_REVISION
|
|||||||
|
|
||||||
export PACKAGE=proxmox-widget-toolkit
|
export PACKAGE=proxmox-widget-toolkit
|
||||||
|
|
||||||
DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
|
DEB=$(PACKAGE)_$(DEB_VERSION_UPSTREAM_REVISION)_all.deb
|
||||||
DEV_DEB=${PACKAGE}-dev_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
|
DEV_DEB=$(PACKAGE)-dev_$(DEB_VERSION_UPSTREAM_REVISION)_all.deb
|
||||||
|
|
||||||
DEBS=${DEB} ${DEV_DEB}
|
DEBS=$(DEB) $(DEV_DEB)
|
||||||
DSC=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.dsc
|
DSC=$(PACKAGE)_$(DEB_VERSION_UPSTREAM_REVISION).dsc
|
||||||
|
|
||||||
BUILDDIR ?= ${PACKAGE}-${DEB_VERSION_UPSTREAM}
|
BUILDDIR ?= $(PACKAGE)-$(DEB_VERSION_UPSTREAM)
|
||||||
|
|
||||||
${BUILDDIR}: GITVERSION:=$(shell git rev-parse HEAD)
|
$(BUILDDIR): GITVERSION:=$(shell git rev-parse HEAD)
|
||||||
${BUILDDIR}:
|
$(BUILDDIR):
|
||||||
rm -rf ${BUILDDIR} ${BUILDDIR}.tmp
|
rm -rf $(BUILDDIR) $(BUILDDIR).tmp
|
||||||
cp -a src/ ${BUILDDIR}.tmp
|
cp -a src/ $(BUILDDIR).tmp
|
||||||
cp -a debian ${BUILDDIR}.tmp/
|
cp -a debian $(BUILDDIR).tmp/
|
||||||
echo "git clone git://git.proxmox.com/git/proxmox-widget-toolkit.git\\ngit checkout ${GITVERSION}" > ${BUILDDIR}.tmp/debian/SOURCE
|
echo "git clone git://git.proxmox.com/git/proxmox-widget-toolkit.git\\ngit checkout $(GITVERSION)" > $(BUILDDIR).tmp/debian/SOURCE
|
||||||
mv ${BUILDDIR}.tmp/ ${BUILDDIR}
|
mv $(BUILDDIR).tmp/ $(BUILDDIR)
|
||||||
|
|
||||||
.PHONY: deb
|
.PHONY: deb
|
||||||
deb: ${DEBS}
|
deb: $(DEBS)
|
||||||
${DEBS}: ${BUILDDIR}
|
$(DEBS): $(BUILDDIR)
|
||||||
cd ${BUILDDIR}; dpkg-buildpackage -b -us -uc
|
cd $(BUILDDIR); dpkg-buildpackage -b -us -uc
|
||||||
lintian ${DEBS}
|
lintian $(DEBS)
|
||||||
|
|
||||||
.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)
|
||||||
|
|
||||||
.PHONY: lint
|
.PHONY: lint
|
||||||
lint: ${JSSRC}
|
lint: $(JSSRC)
|
||||||
${MAKE} -C src lint
|
$(MAKE) -C src lint
|
||||||
|
|
||||||
.PHONY: upload
|
.PHONY: upload
|
||||||
upload: ${DEBS}
|
upload: $(DEBS)
|
||||||
tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg,pbs --dist bullseye
|
tar cf - $(DEB) | ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg,pbs --dist bullseye
|
||||||
tar cf - ${DEV_DEB} | ssh -X repoman@repo.proxmox.com -- upload --product devel --dist bullseye
|
tar cf - $(DEV_DEB) | ssh -X repoman@repo.proxmox.com -- upload --product devel --dist bullseye
|
||||||
|
|
||||||
distclean: clean
|
distclean: clean
|
||||||
clean:
|
clean:
|
||||||
$(MAKE) -C src clean
|
$(MAKE) -C src clean
|
||||||
rm -rf ${BUILDDIR} ${BUILDDIR}.tmp *.tar.gz *.dsc *.deb *.changes *.buildinfo
|
rm -rf $(BUILDDIR) $(BUILDDIR).tmp *.tar.gz *.dsc *.deb *.changes *.buildinfo
|
||||||
find . -name '*~' -exec rm {} ';'
|
|
||||||
|
|
||||||
.PHONY: dinstall
|
.PHONY: dinstall
|
||||||
dinstall: ${DEBS}
|
dinstall: $(DEBS)
|
||||||
dpkg -i ${DEBS}
|
dpkg -i $(DEBS)
|
||||||
|
Loading…
Reference in New Issue
Block a user