pkg(Makefile): update to strip dir properly
This commit is contained in:
parent
c5938dfd40
commit
4a9ad97645
|
@ -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))))
|
||||||
|
|
Loading…
Reference in New Issue