using go modules now

This commit is contained in:
2019-10-29 10:12:59 -07:00
parent 91e01403f8
commit 2947ec68c1
11 changed files with 159 additions and 65 deletions

View File

@@ -29,15 +29,15 @@ endif
default: run
run: build
DEBUG=1 PORT=1111 ./$(APPNAME)d
DEBUG=1 PORT=1111 ./$(APPNAME)
build: ./$(APPNAME)d
build: ./$(APPNAME)
./$(APPNAME)d: *.go merp/*.go merp/models/*.go
./$(APPNAME): *.go models/*.go
go build -o $@ $(GOFLAGS) .
clean:
rm $(APPNAME)d
rm $(APPNAME)
fmt:
go fmt *.go