mirror of
https://git.proxmox.com/git/proxmox-acme
synced 2025-04-28 21:22:59 +00:00
buildsys: use simple parenthesis for variables
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
619a05a877
commit
b7fe111a7f
52
Makefile
52
Makefile
@ -2,14 +2,14 @@ include /usr/share/dpkg/pkg-info.mk
|
|||||||
|
|
||||||
SRC=libproxmox-acme
|
SRC=libproxmox-acme
|
||||||
|
|
||||||
BUILDDIR ?= ${SRC}-${DEB_VERSION_UPSTREAM}
|
BUILDDIR ?= $(SRC)-$(DEB_VERSION_UPSTREAM)
|
||||||
GITVERSION:=$(shell git rev-parse HEAD)
|
GITVERSION:=$(shell git rev-parse HEAD)
|
||||||
|
|
||||||
DEB_PERL=libproxmox-acme-perl_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
|
DEB_PERL=libproxmox-acme-perl_$(DEB_VERSION_UPSTREAM_REVISION)_all.deb
|
||||||
DEB_ACME_PLUGS=libproxmox-acme-plugins_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
|
DEB_ACME_PLUGS=libproxmox-acme-plugins_$(DEB_VERSION_UPSTREAM_REVISION)_all.deb
|
||||||
DEBS=${DEB_PERL} ${DEB_ACME_PLUGS}
|
DEBS=$(DEB_PERL) $(DEB_ACME_PLUGS)
|
||||||
|
|
||||||
DSC=${SRC}_${DEB_VERSION_UPSTREAM_REVISION}.dsc
|
DSC=$(SRC)_$(DEB_VERSION_UPSTREAM_REVISION).dsc
|
||||||
|
|
||||||
ACME_SUBMODULE="src/acme.sh"
|
ACME_SUBMODULE="src/acme.sh"
|
||||||
|
|
||||||
@ -17,35 +17,35 @@ all: $(DEB)
|
|||||||
|
|
||||||
.PHONY: submodule
|
.PHONY: submodule
|
||||||
submodule:
|
submodule:
|
||||||
test -d ${ACME_SUBMODULE}/README.md || git submodule update --init --recursive
|
test -d $(ACME_SUBMODULE)/README.md || git submodule update --init --recursive
|
||||||
|
|
||||||
${BUILDDIR}: src debian submodule
|
$(BUILDDIR): src debian submodule
|
||||||
rm -rf ${BUILDDIR}.tmp
|
rm -rf $(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-acme\\ngit checkout ${GITVERSION}" > ${BUILDDIR}.tmp/debian/SOURCE
|
echo "git clone git://git.proxmox.com/git/proxmox-acme\\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)
|
||||||
|
|
||||||
dinstall: ${DEBS}
|
dinstall: $(DEBS)
|
||||||
dpkg -i ${DEBS}
|
dpkg -i $(DEBS)
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
rm -rf ${SRC}-*/ ${BUILDDIR}.tmp *.deb *.buildinfo *.changes *.dsc *.tar.?z
|
rm -rf $(SRC)-*/ $(BUILDDIR).tmp *.deb *.buildinfo *.changes *.dsc *.tar.?z
|
||||||
|
|
||||||
.PHONY: upload
|
.PHONY: upload
|
||||||
upload: ${DEBS}
|
upload: $(DEBS)
|
||||||
tar cf - ${DEBS}|ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg --dist bullseye
|
tar cf - $(DEBS)|ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg --dist bullseye
|
||||||
tar cf - ${DEB_ACME_PLUGS}|ssh -X repoman@repo.proxmox.com -- upload --product pbs --dist bullseye
|
tar cf - $(DEB_ACME_PLUGS)|ssh -X repoman@repo.proxmox.com -- upload --product pbs --dist bullseye
|
||||||
|
Loading…
Reference in New Issue
Block a user