update Makefile to work with toolbox
- don't use podman prefix if `go` command is found
This commit is contained in:
5
Makefile
5
Makefile
@@ -1,10 +1,15 @@
|
||||
GO_MODULE = qc
|
||||
GO_MODULE_FULL = gitea.kevinnlsamuel.com/kevinnls/$(GO_MODULE)
|
||||
|
||||
|
||||
ifeq "$(shell command -v go)" ""
|
||||
prefix = podman run --interactive --tty --rm \
|
||||
--workdir /usr/local/go/src/$(GO_MODULE) \
|
||||
--volume $(PWD)/:/usr/local/go/src/$(GO_MODULE)/:Z \
|
||||
golang:alpine
|
||||
else
|
||||
prefix =
|
||||
endif
|
||||
|
||||
run:
|
||||
$(prefix) go run $(GO_MODULE) $(ARGS)
|
||||
|
||||
Reference in New Issue
Block a user