]> git.proxmox.com Git - pve-http-server.git/commitdiff
makefile: convert to use simple parenthesis
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 17 May 2023 05:22:11 +0000 (07:22 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 17 May 2023 05:22:13 +0000 (07:22 +0200)
and drop the `find` invocation in the clean target, just fix your
editor.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Makefile

index c8abf08b91a5eea77aa2fe7253c6e522030468d2..f4e7e4e54011ed847613b3123207227e0e01577d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -3,35 +3,34 @@ include /usr/share/dpkg/pkg-info.mk
 PACKAGE=libpve-http-server-perl
 
 GITVERSION:=$(shell git rev-parse HEAD)
-BUILDDIR ?= ${PACKAGE}-${DEB_VERSION_UPSTREAM}
+BUILDDIR ?= $(PACKAGE)-$(DEB_VERSION_UPSTREAM)
 
-DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
+DEB=$(PACKAGE)_$(DEB_VERSION_UPSTREAM_REVISION)_all.deb
 
 all:
 
 .PHONY: deb
-deb: ${DEB}
-${DEB}:
-       rm -rf ${BUILDDIR}
-       cp -a src ${BUILDDIR}
-       cp -a debian ${BUILDDIR}/
+deb: $(DEB)
+$(DEB):
+       rm -rf $(BUILDDIR)
+       cp -a src $(BUILDDIR)
+       cp -a debian $(BUILDDIR)/
        echo "git clone git://git.proxmox.com/git/pve-http-server\\ngit checkout $(GITVERSION)" > $(BUILDDIR)/debian/SOURCE
-       cd ${BUILDDIR}; dpkg-buildpackage -b -us -uc
-       lintian ${DEB}
+       cd $(BUILDDIR); dpkg-buildpackage -b -us -uc
+       lintian $(DEB)
 
 .PHONY: upload
-upload: ${DEB}
-       tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg --dist bullseye
+upload: $(DEB)
+       tar cf - $(DEB) | ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg --dist bullseye
 
 .PHONY: clean distclean
 distclean: clean
-       ${MAKE} -C src $@
+       $(MAKE) -C src $@
 
 clean:
-       ${MAKE} -C src $@
-       rm -rf ${PACKAGE}-*/ *.deb *.changes *.buildinfo ${BTDIR} examples/simple-demo.lck
-       find . -name '*~' -exec rm {} ';'
+       $(MAKE) -C src $@
+       rm -rf $(PACKAGE)-*/ *.deb *.changes *.buildinfo $(BTDIR) examples/simple-demo.lck
 
 .PHONY: dinstall
-dinstall: ${DEB}
-       dpkg -i ${DEB}
+dinstall: $(DEB)
+       dpkg -i $(DEB)