2025-01-09 13:09:26 +01:00
|
|
|
BUILDSTAMPS = docker/genbindings.docker-buildstamp
|
2025-01-18 17:22:45 +13:00
|
|
|
DOCKER = docker
|
2025-01-09 13:09:26 +01:00
|
|
|
|
|
|
|
all: genbindings
|
|
|
|
|
|
|
|
docker/genbindings.docker-buildstamp: docker/genbindings.Dockerfile
|
2025-01-18 17:22:45 +13:00
|
|
|
$(DOCKER) build -t miqt/genbindings:latest -f docker/genbindings.Dockerfile .
|
2025-01-09 13:09:26 +01:00
|
|
|
touch $@
|
|
|
|
|
|
|
|
clean:
|
2025-01-18 17:22:45 +13:00
|
|
|
$(DOCKER) image rm -f miqt/genbindings:latest
|
2025-01-09 13:09:26 +01:00
|
|
|
rm -f $(BUILDSTAMPS)
|
|
|
|
|
|
|
|
genbindings: $(BUILDSTAMPS)
|
2025-01-11 20:48:48 +01:00
|
|
|
mkdir -p ~/.cache/go-build
|
2025-01-18 17:22:45 +13:00
|
|
|
$(DOCKER) run --user $$(id -u):$$(id -g) -v ~/.cache/go-build:/.cache/go-build -v $$PWD:/src -w /src miqt/genbindings:latest /bin/bash -c 'cd cmd/genbindings && go build && ./genbindings'
|
2025-01-09 13:09:26 +01:00
|
|
|
|
|
|
|
.PHONY : all clean genbindings
|