mirror of
https://github.com/89luca89/distrobox.git
synced 2026-08-19 01:14:49 -05:00
* build(deps): add urfave/cli Signed-off-by: Fabrizio Sestito <fabrizio.sestito@suse.com> * chore: add gitignore Signed-off-by: Fabrizio Sestito <fabrizio.sestito@suse.com> * ci: add golangci configuration Signed-off-by: Fabrizio Sestito <fabrizio.sestito@suse.com> * build(Makefile): add Makefile Signed-off-by: Fabrizio Sestito <fabrizio.sestito@suse.com> * feat: add main package and distrobox cmd Signed-off-by: Fabrizio Sestito <fabrizio.sestito@suse.com> --------- Signed-off-by: Fabrizio Sestito <fabrizio.sestito@suse.com>
30 lines
457 B
Makefile
30 lines
457 B
Makefile
GO_BUILD_ENV := CGO_ENABLED=0 GOOS=linux
|
|
|
|
.PHONY: build
|
|
build:
|
|
$(GO_BUILD_ENV) go build -o ./bin/distrobox ./cmd/distrobox
|
|
|
|
.PHONY: test
|
|
test: vet
|
|
$(GO_BUILD_ENV) go test -v ./...
|
|
|
|
.PHONY: vet
|
|
vet:
|
|
$(GO_BUILD_ENV) go vet ./...
|
|
|
|
.PHONY: fmt
|
|
fmt:
|
|
$(GO_BUILD_ENV) go fmt ./...
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm -f ./bin/distrobox
|
|
|
|
.PHONY: lint
|
|
lint:
|
|
$(GO_BUILD_ENV) golangci-lint run --verbose
|
|
|
|
.PHONY: lint-fix
|
|
lint-fix:
|
|
$(GO_BUILD_ENV) golangci-lint run --fix
|