mirror of
https://github.com/gmemstr/sliproad.git
synced 2024-09-19 16:11:11 +01:00
5e345f11af
Icons! Finally, signifying type of link without relying on colours. Also added some margin to help alleviate strain from contrasting colours. Fixed background-color of "NAS" home link maintaining white background.
28 lines
424 B
Makefile
28 lines
424 B
Makefile
.DEFAULT_GOAL := build
|
|
|
|
build:
|
|
go build
|
|
|
|
pi:
|
|
env GOOS=linux GOARCH=arm GOARM=5 go build -o nas-arm
|
|
|
|
small:
|
|
go build -ldflags="-s -w"
|
|
upx --brute nas -9 --no-progress
|
|
|
|
small_pi:
|
|
env GOOS=linux GOARCH=arm GOARM=5 go build -o nas-arm -ldflags="-s -w"
|
|
upx --brute nas-arm -9 --no-progress
|
|
|
|
run:
|
|
go run webserver.go
|
|
|
|
test:
|
|
go test ./... -cover
|
|
|
|
dist: clean small small_pi
|
|
mkdir build
|
|
mv nas* build
|
|
|
|
clean:
|
|
rm -rf build
|