mirror of
https://github.com/tenox7/wrp.git
synced 2024-11-21 19:30:48 +00:00
makefile update
This commit is contained in:
parent
60989d3395
commit
e2223af833
@ -1,5 +1,5 @@
|
|||||||
FROM chromedp/headless-shell
|
FROM chromedp/headless-shell
|
||||||
ADD wrp-linux /wrp
|
ADD wrp /wrp
|
||||||
ENTRYPOINT ["/wrp"]
|
ENTRYPOINT ["/wrp"]
|
||||||
ENV PATH="/headless-shell:${PATH}"
|
ENV PATH="/headless-shell:${PATH}"
|
||||||
LABEL maintainer="as@tenoware.com"
|
LABEL maintainer="as@tenoware.com"
|
||||||
|
36
Makefile
36
Makefile
@ -1,28 +1,18 @@
|
|||||||
all: linux freebsd openbsd macos windows rpi
|
all: wrp
|
||||||
|
|
||||||
linux:
|
wrp: wrp.go
|
||||||
GOOS=linux GOARCH=amd64 go build -a -o wrp-linux wrp.go
|
go build wrp.go
|
||||||
|
|
||||||
linux-ppc64le:
|
cross:
|
||||||
GOOS=linux GOARCH=ppc64le go build -a -o wrp-linux-ppc64le wrp.go
|
GOOS=linux GOARCH=amd64 go build -a -o wrp-amd64-linux wrp.go
|
||||||
|
GOOS=freebsd GOARCH=amd64 go build -a -o wrp-amd64-freebsd wrp.go
|
||||||
|
GOOS=openbsd GOARCH=amd64 go build -a -o wrp-amd64-openbsd wrp.go
|
||||||
|
GOOS=darwin GOARCH=amd64 go build -a -o wrp-amd64-macos wrp.go
|
||||||
|
GOOS=windows GOARCH=amd64 go build -a -o wrp-amd64-windows.exe wrp.go
|
||||||
|
GOOS=linux GOARCH=arm go build -a -o wrp-arm-linux wrp.go
|
||||||
|
|
||||||
rpi:
|
docker: wrp
|
||||||
GOOS=linux GOARCH=arm go build -a -o wrp-linux-rpi wrp.go
|
docker build -t tenox7/wrp:latest .
|
||||||
|
|
||||||
freebsd:
|
|
||||||
GOOS=freebsd GOARCH=amd64 go build -a -o wrp-freebsd wrp.go
|
|
||||||
|
|
||||||
openbsd:
|
|
||||||
GOOS=openbsd GOARCH=amd64 go build -a -o wrp-openbsd wrp.go
|
|
||||||
|
|
||||||
macos:
|
|
||||||
GOOS=darwin GOARCH=amd64 go build -a -o wrp-macos wrp.go
|
|
||||||
|
|
||||||
windows:
|
|
||||||
GOOS=windows GOARCH=amd64 go build -a -o wrp-windows.exe wrp.go
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf wrp-linux wrp-freebsd wrp-openbsd wrp-macos wrp-windows.exe wrp-linux-rpi
|
rm -rf wrp-* wrp
|
||||||
|
|
||||||
docker:
|
|
||||||
docker build -t tenox7/wrp:latest .
|
|
Loading…
Reference in New Issue
Block a user