Makefile: added recipe to run examples

This commit is contained in:
2026-01-29 04:17:53 +00:00
parent 6f6b747540
commit 0fdfbef1de

View File

@@ -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))