first with full handle over rpm
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
parent
7948368573
commit
274ea454dd
50 changed files with 4309 additions and 0 deletions
44
Makefile
Normal file
44
Makefile
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
BINARY := clonepack
|
||||
BUILD_DIR := bin
|
||||
CMD := ./cmd/clonepack
|
||||
|
||||
.PHONY: all build run test lint clean tidy help
|
||||
|
||||
all: build
|
||||
|
||||
## build: compile le binaire dans bin/clonepack
|
||||
build:
|
||||
@mkdir -p $(BUILD_DIR)
|
||||
go build -o $(BUILD_DIR)/$(BINARY) $(CMD)
|
||||
|
||||
## run: démarre le serveur
|
||||
run: build
|
||||
./$(BUILD_DIR)/$(BINARY) serve
|
||||
|
||||
## test: lance tous les tests
|
||||
test:
|
||||
go test ./...
|
||||
|
||||
## test-v: tests avec sortie verbeuse
|
||||
test-v:
|
||||
go test -v ./...
|
||||
|
||||
## lint: vérifie le code (nécessite golangci-lint)
|
||||
lint:
|
||||
golangci-lint run ./...
|
||||
|
||||
## vet: analyse statique Go
|
||||
vet:
|
||||
go vet ./...
|
||||
|
||||
## tidy: met à jour go.mod et go.sum
|
||||
tidy:
|
||||
go mod tidy
|
||||
|
||||
## clean: supprime les artefacts de build
|
||||
clean:
|
||||
rm -rf $(BUILD_DIR)
|
||||
|
||||
## help: affiche cette aide
|
||||
help:
|
||||
@grep -E '^## ' Makefile | sed 's/## / /'
|
||||
Loading…
Add table
Add a link
Reference in a new issue