pkg(Makefile): update to strip dir properly

This commit is contained in:
Thomas Hobson 2021-03-15 22:55:42 +13:00
parent c5938dfd40
commit 4a9ad97645
No known key found for this signature in database
GPG Key ID: 9F1FD9D87950DB6F
1 changed files with 3 additions and 2 deletions

View File

@ -11,10 +11,11 @@ build build-all: $(addsuffix .pkg.tar.gz, ${PACKAGES})
define PKG_RULE define PKG_RULE
$(1).pkg.tar.gz: $(subst -,/,$(1))/ $(subst -,/,$(1))/pkg-info.json $(1).pkg.tar.gz: $(subst -,/,$(1)) $(subst -,/,$(1))/pkg-info.json
cd $$< && chmod +x ./build.sh && ./build.sh cd $$< && chmod +x ./build.sh && ./build.sh
rm -f $$@ rm -f $$@
tar czf $$@ $$< --transform='s|$$<||'
tar czf $$@ -C $$< .
endef endef
$(foreach pkg,$(PACKAGES),$(eval $(call PKG_RULE,$(pkg)))) $(foreach pkg,$(PACKAGES),$(eval $(call PKG_RULE,$(pkg))))