Init: lab4 done

This commit is contained in:
2025-11-07 05:26:09 +08:00
commit b55f254d82
23 changed files with 1140 additions and 0 deletions

21
Makefile Normal file
View 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)