blob: eaf4e3f943b88677139eeccde6854d98022528ab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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
|