feat: init commit
This commit is contained in:
12
crates/burrego/examples/opa/Makefile
Normal file
12
crates/burrego/examples/opa/Makefile
Normal file
@@ -0,0 +1,12 @@
|
||||
SOURCES=$(shell find . -name "*.rego")
|
||||
OBJECTS=$(SOURCES:%.rego=%.wasm)
|
||||
|
||||
all: $(OBJECTS)
|
||||
|
||||
%.wasm: %.rego
|
||||
opa build -t wasm -e policy/main utility/policy.rego -o $*.tar.gz $<
|
||||
tar -xf $*.tar.gz --transform "s|policy.wasm|$*.wasm|" /policy.wasm
|
||||
rm $*.tar.gz
|
||||
|
||||
clean:
|
||||
rm -f *.wasm *.tar.gz
|
||||
Reference in New Issue
Block a user