latest
This commit is contained in:
10
Makefile
10
Makefile
@@ -29,15 +29,15 @@ endif
|
||||
default: run
|
||||
|
||||
run: build
|
||||
DEBUG=1 PORT=1111 ./cmd/$(APPNAME)/$(APPNAME)
|
||||
DEBUG=1 PORT=1111 ./$(APPNAME)
|
||||
|
||||
build: ./cmd/$(APPNAME)/$(APPNAME)
|
||||
build: ./$(APPNAME)
|
||||
|
||||
./cmd/$(APPNAME)/$(APPNAME): *.go models/*.go cmd/*/*.go
|
||||
cd ./cmd/$(APPNAME) && go build -o ./$(APPNAME) $(GOFLAGS) .
|
||||
./$(APPNAME): *.go models/*.go cmd/*/*.go
|
||||
cd ./cmd/$(APPNAME) && go build -o ./$(APPNAME) $(GOFLAGS) . && mv ./$(APPNAME) ../..
|
||||
|
||||
clean:
|
||||
rm ./cmd/$(APPNAME)/$(APPNAME)
|
||||
rm ./$(APPNAME)
|
||||
|
||||
fmt:
|
||||
go fmt *.go
|
||||
|
||||
Reference in New Issue
Block a user