From 29707b156934373cc891669059eb09006523b90e Mon Sep 17 00:00:00 2001 From: Julien Pivotto Date: Wed, 14 Dec 2022 16:34:36 +0100 Subject: [PATCH] Makefile: Avoid the use of --transform for tar This makes it compatible with macos tar as well Signed-off-by: Julien Pivotto --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 4c40efd36..dd51d5817 100644 --- a/Makefile +++ b/Makefile @@ -90,8 +90,10 @@ endif .PHONY: npm_licenses npm_licenses: ui-install @echo ">> bundling npm licenses" - rm -f $(REACT_APP_NPM_LICENSES_TARBALL) - find $(UI_NODE_MODULES_PATH) -iname "license*" | tar cfj $(REACT_APP_NPM_LICENSES_TARBALL) --transform 's/^/npm_licenses\//' --files-from=- + rm -f $(REACT_APP_NPM_LICENSES_TARBALL) npm_licenses + ln -s . npm_licenses + find npm_licenses/$(UI_NODE_MODULES_PATH) -iname "license*" | tar cfj $(REACT_APP_NPM_LICENSES_TARBALL) --files-from=- + rm -f npm_licenses .PHONY: tarball tarball: npm_licenses common-tarball