mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
26 lines
387 B
Makefile
26 lines
387 B
Makefile
all: vendor build
|
|
./fn
|
|
|
|
build:
|
|
go build -o fn
|
|
|
|
docker: vendor
|
|
GOOS=linux go build -o fn
|
|
docker build -t treeder/fn .
|
|
docker push treeder/fn
|
|
|
|
dep:
|
|
dep ensure
|
|
|
|
test:
|
|
go test $(go list ./... | grep -v /vendor/)
|
|
|
|
release:
|
|
GOOS=linux go build -o fn_linux
|
|
GOOS=darwin go build -o fn_mac
|
|
GOOS=windows go build -o fn.exe
|
|
|
|
# install locally
|
|
install: build
|
|
sudo mv fn /usr/local/bin/
|