sliproad/Makefile
Gabriel Simmer 58128a0e98
File upload progress and Makefile commands.
Implemented file upload progress to the frontend using XMLHttpRequests,
since fetch() doesn't offer this functionality right now. Bit of a
fragmented approach to requests in the codebase right now, but hope to
resolve this soon. Not styled at all either.

Also added some nifty commands to the Makefile for producing smaller
binaries using some compiler flags and upx, and requires upx to be
installed (make small and make small_pi).
2020-03-31 01:16:12 +01:00

18 lines
257 B
Makefile

.DEFAULT_GOAL := build
build:
go build
pi:
env GOOS=linux GOARCH=arm GOARM=5 go build
small:
go build -ldflags="-s -w"
upx --brute nas
small_pi:
env GOOS=linux GOARCH=arm GOARM=5 go build -ldflags="-s -w"
upx --brute nas
run:
go run webserver.go