Makefile: added recipe to run examples
This commit is contained in:
6
Makefile
6
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))
|
||||
|
||||
Reference in New Issue
Block a user