From b95d5e2079786e8435f6afc176b3b8b80043b868 Mon Sep 17 00:00:00 2001 From: Wolf Bergenheim Date: Thu, 31 Dec 2009 10:36:02 +0200 Subject: Added Makefiles to build the project --- tests/Makefile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 tests/Makefile (limited to 'tests') 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 -- cgit v1.2.3