diff options
Diffstat (limited to 'tests/Makefile')
-rw-r--r-- | tests/Makefile | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/Makefile b/tests/Makefile new file mode 100644 index 0000000..f7a97a8 --- /dev/null +++ b/tests/Makefile @@ -0,0 +1,21 @@ +QMAKE = qmake +MAKEFILES = $(patsubst %.pro,%.make,$(wildcard *.pro)) + +%.make: %.pro + $(QMAKE) -o $@ $< + +tests: all + find build -type f -name 'test-*' -exec sh -c "if test -x {}; then {}; fi" \; + +clean: $(MAKEFILES) + for makefile in $(MAKEFILES); do make -f "$$makefile" clean; done + $(RM) $(MAKEFILES) + $(RM) -r build + +all: $(MAKEFILES) + for makefile in $(MAKEFILES); do make -f "$$makefile" all; done + +install: $(MAKEFILES) + for makefile in $(MAKEFILES); do make -f "$$makefile" install; done + +.phony: install tests all clean |