diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | examples/Makefile | 10 |
3 files changed, 15 insertions, 0 deletions
@@ -2,3 +2,4 @@ pipac build *.o test/*_test +examples/*.bin @@ -26,6 +26,10 @@ linter-fix: $(SRCS) $(HEADERS) clang-format -i $? $(MAKE) -C test linter-fix +.PHONY: examples +examples: + $(MAKE) -C examples + .PHONY: test test: $(TARGET) $(MAKE) -C test diff --git a/examples/Makefile b/examples/Makefile new file mode 100644 index 0000000..0748662 --- /dev/null +++ b/examples/Makefile @@ -0,0 +1,10 @@ +SRCS := $(wildcard *.pipa) +BINS := $(patsubst %.pipa, %.bin, $(SRCS)) + +.PHONY: all +all: $(BINS) + +%.bin: %.pipa + ../pipa --out $@ $< +clean: + $(RM) $(BINS) |