diff --git a/Makefile b/Makefile index 9423ff8..5eb0db1 100644 --- a/Makefile +++ b/Makefile @@ -39,7 +39,7 @@ clangd: compile_commands.json compile_commands.json: Makefile bear -- $(MAKE) -B MODE=debug -.PHONY: run clean +.PHONY: run clean examples ARGS= run: $(OUT) ./$^ $(ARGS) @@ -47,5 +47,9 @@ run: $(OUT) clean: rm -rf $(DIST) +examples: $(OUT) + @echo "Example: Hello World" + ./$^ examples/hello-world.arl + DEPS:=$(patsubst %,$(DEPDIR)/%.d, $(UNITS)) include $(wildcard $(DEPS))