summaryrefslogtreecommitdiff
path: root/Makefile
blob: 387abfa0d34fe2ce5b362ba5d819745555c9f668 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
QMAKE = qmake
MAKEFILE = libresourceqt.make
LIB = build/libresourceqt.so.1.0.0

%.make: %.pro
	$(QMAKE) -o $@ $<

all: $(MAKEFILE)
	$(MAKE) -f $(MAKEFILE) all
	$(MAKE) -C tests all

clean:
	$(RM) $(MAKEFILE)
	$(RM) -r build	
	$(MAKE) -C tests clean

install: $(MAKEFILE)
	$(MAKE) -f $(MAKEFILE) install
	$(MAKE) -C tests install
	
tests: force
	$(MAKE) -C tests tests

force: ;

.phony: clean all install tests