summaryrefslogtreecommitdiff
path: root/Makefile
blob: 7e9ea9a7d863353f352c844eaeb0a8a511ca00e1 (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
27
QMAKE = qmake
MAKEFILE = libresourceqt.make
LIB = build/libresourceqt.so.1.0.0

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

clean: $(MAKEFILE)
	$(MAKE) -f $(MAKEFILE) clean
	cd tests; $(MAKE) clean
	$(RM) $(MAKEFILE)
	$(RM) -r build

all: $(MAKEFILE)
	$(MAKE) -f $(MAKEFILE) all
	cd tests; $(MAKE) all

install: $(MAKEFILE)
	$(MAKE) -f $(MAKEFILE) install
	cd tests; $(MAKE) install
	
tests: force
	cd tests; $(MAKE) tests

force: ;

.phony: clean all install tests