diff options
| author | Oskari Timperi <oskari.timperi@iki.fi> | 2018-04-07 00:10:45 +0300 |
|---|---|---|
| committer | Oskari Timperi <oskari.timperi@iki.fi> | 2018-04-07 00:10:45 +0300 |
| commit | 6e2b53669cfc52174798592cc3713873331f4f39 (patch) | |
| tree | 676d4efe072db48809b6d5723f237a57d66760fa | |
| parent | 280cf765be0865160e4658a0afa663e17524115b (diff) | |
| download | nimpb_protoc-6e2b53669cfc52174798592cc3713873331f4f39.tar.gz nimpb_protoc-6e2b53669cfc52174798592cc3713873331f4f39.zip | |
Add Makefile for automating dev stuff
| -rw-r--r-- | Makefile | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..fd6ba4b --- /dev/null +++ b/Makefile @@ -0,0 +1,19 @@ +VERSION = 3.5.1 + +nimpb_build: src/nimpb_build.nim src/nimpb_buildpkg/plugin.nim + nim c -o:$@ $< + +.PHONY: update-protoc +update-protoc: fetch + ./fetch $(VERSION) + +fetch: fetch.nim + nim c -d:ssl $< + +.PHONY: update-descriptor +update-descriptor: src/nimpb_buildpkg/descriptor_pb.nim + +src/nimpb_buildpkg/descriptor_pb.nim: src/nimpb_buildpkg/protobuf/include/google/protobuf/descriptor.proto nimpb_build + ./nimpb_build -Isrc/nimpb_buildpkg/protobuf/include/google/protobuf \ + --out=src/nimpb_buildpkg \ + src/nimpb_buildpkg/protobuf/include/google/protobuf/descriptor.proto |
