-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
Makefile
for rebuilding bindings
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 :)
- Loading branch information
1 parent
3d864cd
commit 7747bff
Showing
3 changed files
with
21 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
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 -v ~/.cache/go-build:/root/.cache/go-build -v $$PWD:/src -w /src miqt/genbindings:latest /bin/bash -c 'cd cmd/genbindings && go build && ./genbindings' | ||
|
||
.PHONY : all clean genbindings |