mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-20 20:16:26 +02:00
pkg(common): helpers extract into directories
This commit is contained in:
parent
bd920b19b9
commit
a27638b06b
1 changed files with 7 additions and 3 deletions
|
@ -65,9 +65,13 @@ $(patsubst %.json,%.jq,${INFO_FILE}):
|
|||
|
||||
# Helpers
|
||||
%/: %.tar.gz
|
||||
cd ${BUILD_DIR} && tar xzf $(patsubst ${BUILD_DIR}%,%,$<)
|
||||
mkdir -p $@
|
||||
tar xzf $< --strip-components=1 -C $@
|
||||
%/: %.tar.xz
|
||||
cd ${BUILD_DIR} && tar xf $(patsubst ${BUILD_DIR}%,%,$<)
|
||||
|
||||
mkdir -p $@
|
||||
tar xf $< --strip-components=1 -C $@
|
||||
%/: %.zip
|
||||
mkdir -p $@
|
||||
unzip $< -d $@
|
||||
%.json: %.jq
|
||||
jq '$(shell tr '\n' '|' < $<).' <<< "{}" > $@
|
Loading…
Add table
Add a link
Reference in a new issue