diff --git a/Makefile b/Makefile index d1f46c25..10720e0e 100644 --- a/Makefile +++ b/Makefile @@ -32,4 +32,4 @@ vendor: composer.json composer.lock .PHONY: zip zip: - grep -Po "(?<='version' => ')([0-9]+\.[0-9]+\.[0-9]+)" ext_emconf.php | xargs -I {version} sh -c 'mkdir -p ../zip; git archive -v -o "../zip/${PWD##*/}_{version}.zip" v{version}' + grep -Po "(?<='version' => ')([0-9]+\.[0-9]+\.[0-9]+)" ext_emconf.php | xargs -I {version} sh -c 'mkdir -p ../zip; git archive -v -o "../zip/$(shell basename $(CURDIR))_{version}.zip" v{version}'