From fe4e9ea42caf1aaae9eef67beff590730c8e3190 Mon Sep 17 00:00:00 2001 From: Harald Pfeiffer Date: Sun, 1 Dec 2024 17:21:59 +0100 Subject: InComm --- nfpm/Makefile | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 nfpm/Makefile (limited to 'nfpm/Makefile') diff --git a/nfpm/Makefile b/nfpm/Makefile new file mode 100644 index 0000000..eaf4e3f --- /dev/null +++ b/nfpm/Makefile @@ -0,0 +1,42 @@ +FJVER := 9.0.2 + +all: skel chglog build + +skel: skel-amd64 skel-arm-6 skel-arm64 + +skel-amd64: + @grep -vP '^[\t\ ]*#' nfpm.yaml.skel | tr -s '\n' | sed 's/{%FJVER%}/${FJVER}/g;s/{%FJARCH%}/amd64/g;s/forge.$$/forge.\n/' > nfpm-amd64.yaml +skel-arm-6: + @grep -vP '^[\t\ ]*#' nfpm.yaml.skel | tr -s '\n' | sed 's/{%FJVER%}/${FJVER}/g;s/{%FJARCH%}/arm-6/g;s/forge.$$/forge.\n/' > nfpm-arm-6.yaml +skel-arm64: + @grep -vP '^[\t\ ]*#' nfpm.yaml.skel | tr -s '\n' | sed 's/{%FJVER%}/${FJVER}/g;s/{%FJARCH%}/arm64/g;s/forge.$$/forge.\n/' > nfpm-arm64.yaml + +build: build-deb build-rpm build-arch + +build-deb: build-deb-amd64 build-deb-arm-6 build-deb-arm64 +build-deb-amd64: + @mkdir -pv ./build + @nfpm pkg -f ./nfpm-amd64.yaml --packager deb --target ./build/ +build-deb-arm-6: + @mkdir -pv ./build + @nfpm pkg -f ./nfpm-arm-6.yaml --packager deb --target ./build/ +build-deb-arm64: + @mkdir -pv ./build + @nfpm pkg -f ./nfpm-arm64.yaml --packager deb --target ./build/ + +build-rpm: build-rpm-amd64 build-rpm-arm-6 build-rpm-arm64 +build-rpm-amd64: + @mkdir -pv ./build + @nfpm pkg -f ./nfpm-amd64.yaml --packager rpm --target ./build/ +build-rpm-arm-6: + @mkdir -pv ./build + @nfpm pkg -f ./nfpm-arm-6.yaml --packager rpm --target ./build/ +build-rpm-arm64: + @mkdir -pv ./build + @nfpm pkg -f ./nfpm-arm64.yaml --packager rpm --target ./build/ + +chglog: + @chglog init + +clean: + @rm -rv ./build -- cgit v1.2.3