first with full handle over rpm

Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
GnomeZworc 2026-04-25 14:49:14 +02:00
commit 274ea454dd
Signed by: nicolas.boufideline
GPG key ID: 4406BBBF8845D632
50 changed files with 4309 additions and 0 deletions

44
Makefile Normal file
View 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/## / /'