summaryrefslogtreecommitdiff
path: root/vendor/Makefile.am
blob: 674784ab335ff1982cf70f09f86118d2ab82d29a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# needs an absolute path bc. of the cmake invocation
cmockasrc     = "@VENDOR_SRC_ROOT@/cmocka"
cmockabuild   = "@VENDOR_BUILD_ROOT@/cmocka"
cmockainstall = "@VENDOR_DIST_ROOT@"

MAINTAINERCLEANFILES = \
	$(srcdir)/Makefile.in \
	"$(cmockabuild)" \
	"$(cmockainstall)" \
	"@VENDOR_BUILD_ROOT@"

libcmocka:
if CMOCKA_INITIALIZED
	mkdir -p $(cmockabuild) $(cmockainstall)
	(cd $(cmockabuild) && cmake -DCMAKE_INSTALL_PREFIX=$(cmockainstall) $(cmockasrc) && make && make install)
endif

check: libcmocka

clean:
	rm -rf $(cmockabuild)
	rm -rf $(cmockainstall)