]> git.proxmox.com Git - pve-manager.git/blobdiff - Makefile
makefile: convert to use simple parenthesis
[pve-manager.git] / Makefile
index 1d6189b13aae7df052fefbeb23d4d5d61f2141ce..0cc56ad83d8fb55da88a691aebfec3aab90f72d0 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2,8 +2,8 @@ include /usr/share/dpkg/pkg-info.mk
 include /usr/share/dpkg/architecture.mk
 include defines.mk
 
-export PVERELEASE=${DEB_VERSION_UPSTREAM}
-export VERSION=${DEB_VERSION_UPSTREAM_REVISION}
+export PVERELEASE=$(DEB_VERSION_UPSTREAM)
+export VERSION=$(DEB_VERSION_UPSTREAM_REVISION)
 
 DESTDIR=
 
@@ -14,20 +14,20 @@ GITVERSION:=$(shell git rev-parse HEAD)
 # possibly set via debian/rules(.env)
 REPOID?=$(shell git rev-parse --short=8 HEAD)
 
-DEB=${PACKAGE}_${VERSION}_${DEB_BUILD_ARCH}.deb
+DEB=$(PACKAGE)_$(VERSION)_$(DEB_BUILD_ARCH).deb
 
-all: ${SUBDIRS}
-       set -e && for i in ${SUBDIRS}; do ${MAKE} -C $$i; done
+all: $(SUBDIRS)
+       set -e && for i in $(SUBDIRS); do $(MAKE) -C $$i; done
 
 .PHONY: check
 check: bin test www
-       ${MAKE} -C bin check
-       ${MAKE} -C test check
-       ${MAKE} -C www check
+       $(MAKE) -C bin check
+       $(MAKE) -C test check
+       $(MAKE) -C www check
 
 .PHONY: dinstall
-dinstall: ${DEB}
-       dpkg -i ${DEB}
+dinstall: $(DEB)
+       dpkg -i $(DEB)
 
 .PHONY: deb
 deb: $(DEB)
@@ -35,34 +35,33 @@ $(DEB):
        rm -rf dest
        mkdir dest
        rsync -a * dest
-       echo "git clone git://git.proxmox.com/git/pve-manager.git\\ngit checkout ${GITVERSION}" >  dest/debian/SOURCE
-       echo "REPOID_GENERATED=${REPOID}" > dest/debian/rules.env
+       echo "git clone git://git.proxmox.com/git/pve-manager.git\\ngit checkout $(GITVERSION)" >  dest/debian/SOURCE
+       echo "REPOID_GENERATED=$(REPOID)" > dest/debian/rules.env
        cd dest; dpkg-buildpackage -b -us -uc
-       lintian ${DEB}
+       lintian $(DEB)
 
 .PHONY: upload
-upload: ${DEB} check
+upload: $(DEB) check
        # check if working directory is clean
        git diff --exit-code --stat && git diff --exit-code --stat --staged
-       tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com upload --product pve --dist bullseye
+       tar cf - $(DEB) | ssh -X repoman@repo.proxmox.com upload --product pve --dist bullseye
 
 .PHONY: install
 install: vzdump-hook-script.pl
-       install -d -m 0700 -o www-data -g www-data ${DESTDIR}/var/log/pveproxy
-       install -d ${DOCDIR}/examples
-       install -d ${DESTDIR}/var/lib/${PACKAGE}
-       install -d ${DESTDIR}/var/lib/vz/images
-       install -d ${DESTDIR}/var/lib/vz/template/cache
-       install -d ${DESTDIR}/var/lib/vz/template/iso
-       install -m 0644 vzdump-hook-script.pl ${DOCDIR}/examples/vzdump-hook-script.pl
-       install -m 0644 spice-example-sh ${DOCDIR}/examples/spice-example-sh
-       set -e && for i in ${SUBDIRS}; do ${MAKE} -C $$i $@; done
+       install -d -m 0700 -o www-data -g www-data $(DESTDIR)/var/log/pveproxy
+       install -d $(DOCDIR)/examples
+       install -d $(DESTDIR)/var/lib/$(PACKAGE)
+       install -d $(DESTDIR)/var/lib/vz/images
+       install -d $(DESTDIR)/var/lib/vz/template/cache
+       install -d $(DESTDIR)/var/lib/vz/template/iso
+       install -m 0644 vzdump-hook-script.pl $(DOCDIR)/examples/vzdump-hook-script.pl
+       install -m 0644 spice-example-sh $(DOCDIR)/examples/spice-example-sh
+       set -e && for i in $(SUBDIRS); do $(MAKE) -C $$i $@; done
 
 .PHONY: distclean
 distclean: clean
 
 .PHONY: clean
 clean:
-       set -e && for i in ${SUBDIRS}; do ${MAKE} -C $$i $@; done
-       find . -name '*~' -exec rm {} ';'
+       set -e && for i in $(SUBDIRS); do $(MAKE) -C $$i $@; done
        rm -rf dest country.dat *.deb *.buildinfo *.changes ca-tmp