Skip to content

Commit

Permalink
chore: simplify make invocations
Browse files Browse the repository at this point in the history
  • Loading branch information
booniepepper committed Dec 27, 2023
1 parent 3a6c611 commit 64dbba7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
9 changes: 3 additions & 6 deletions example/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,15 @@ all: build

project_name=example1
openfga_version=latest
language=java

build:
cd "${project_name}" && \
./gradlew build
./gradlew -P language=$(language) build

run:
cd "${project_name}" && \
./gradlew run

run-kotlin:
cd "${project_name}" && \
./gradlew -P language=kotlin run
./gradlew -P language=$(language) run

run-openfga:
docker pull docker.io/openfga/openfga:${openfga_version} && \
Expand Down
1 change: 1 addition & 0 deletions example/example1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Steps
2. Run `make` to build the project
3. If you have an OpenFGA server running, you can use it, otherwise run `make run-openfga` to spin up an instance (you'll need to switch to a different terminal after - don't forget to close it when done)
4. Run `make run` to run the example
* This should run a Java example by default. Where implemented, it's possible to specify an alternate JVM language too, like `make run language=kotlin`.

#### Run using a local unpublished SDK build

Expand Down

0 comments on commit 64dbba7

Please sign in to comment.