mirror of
https://github.com/mappu/miqt.git
synced 2025-01-20 21:50:38 +00:00
da9349971c
Having a makefile is a nice little trick to re-run the binding generation code without having to copy-paste and/or remember the right docker incantations :)
17 lines
545 B
Makefile
17 lines
545 B
Makefile
BUILDSTAMPS = docker/genbindings.docker-buildstamp
|
|
|
|
all: genbindings
|
|
|
|
docker/genbindings.docker-buildstamp: docker/genbindings.Dockerfile
|
|
docker build -t miqt/genbindings:latest -f docker/genbindings.Dockerfile .
|
|
touch $@
|
|
|
|
clean:
|
|
docker image rm -f miqt/genbindings:latest
|
|
rm -f $(BUILDSTAMPS)
|
|
|
|
genbindings: $(BUILDSTAMPS)
|
|
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'
|
|
|
|
.PHONY : all clean genbindings
|