Init: lab4 done
This commit is contained in:
21
Makefile
Normal file
21
Makefile
Normal file
@@ -0,0 +1,21 @@
|
||||
.PHONY: all swagger clean
|
||||
|
||||
SWAG ?= ~/go/bin/swag
|
||||
SWAG_INIT_ARGS += -o docs -g cmds/server.go
|
||||
|
||||
GO_ENV += CGO_ENABLED=0
|
||||
|
||||
SOURCE := $(shell find . -type f -name '*.go')
|
||||
TARGET := lab4
|
||||
|
||||
all: swagger $(TARGET)
|
||||
|
||||
swagger:
|
||||
$(SWAG) fmt
|
||||
$(SWAG) init $(SWAG_INIT_ARGS)
|
||||
|
||||
$(TARGET): $(SOURCE)
|
||||
$(GO_ENV) go build -o $@
|
||||
|
||||
clean:
|
||||
-rm $(TARGET)
|
||||
Reference in New Issue
Block a user