summaryrefslogtreecommitdiff
path: root/tests/Makefile
blob: 8c9ab42274521b08de5e7e15f50ce29eabf12c0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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:
	$(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