blob: f7a97a8c7843b536de553f6fb288964c5c952109 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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
|