pkg(common): Generate test file per version
This commit is contained in:
parent
70262d8c4b
commit
1a7382bb6f
|
@ -1,2 +1,3 @@
|
|||
build/
|
||||
*.pkg.tar.gz
|
||||
*.tf
|
|
@ -34,11 +34,12 @@ name:
|
|||
|
||||
|
||||
.NOTPARALLEL: build
|
||||
build: ${BUILD_DIR} ${PKG_FILE}
|
||||
build: ${BUILD_DIR} ${PKG_FILE} ${PKG_SLUG}.tf
|
||||
|
||||
clean:
|
||||
rm -rf ${BUILD_DIR}
|
||||
rm -f ${PKG_FILE}
|
||||
rm -f ${PKG_SLUG}.tf
|
||||
|
||||
# mkdir
|
||||
${BUILD_DIR}:
|
||||
|
@ -61,7 +62,8 @@ $(patsubst %.json,%.jq,${INFO_FILE}):
|
|||
echo '.build_platform="$(or ${PLATFORM}, baremetal-$(shell grep -oP "^ID=\K\w+" /etc/os-release ))"' >> $@
|
||||
$(foreach dep, ${DEPENDENCIES}, echo '.dependencies.$(word 1,$(subst =, ,${dep}))="$(word 2,$(subst =, ,${dep}))"' >> $@)
|
||||
|
||||
|
||||
${PKG_SLUG}.tf:
|
||||
cp ${NAME}.test $@
|
||||
|
||||
# Helpers
|
||||
%/: %.tar.gz
|
||||
|
|
Loading…
Reference in New Issue