summaryrefslogtreecommitdiff
path: root/vendor/Makefile.am
diff options
context:
space:
mode:
authorAlberto Gonzalez Iniesta <agi@inittab.org>2016-11-21 09:37:33 +0100
committerAlberto Gonzalez Iniesta <agi@inittab.org>2016-11-21 09:37:33 +0100
commit93b77cacdbb7e6f310c4e20f85c3a24ed5ba18ba (patch)
tree55a7688c9969ef4d01625caa58c7f679098c76eb /vendor/Makefile.am
parentdaa9ef0efeb5e10a1b43820fbab3a4ff5fbd22f1 (diff)
parent20c8675ba46bda97330a4117c459a59a9f1c465e (diff)
Merge tag 'upstream/2.4_beta1'
Upstream version 2.4~beta1
Diffstat (limited to 'vendor/Makefile.am')
-rw-r--r--vendor/Makefile.am22
1 files changed, 22 insertions, 0 deletions
diff --git a/vendor/Makefile.am b/vendor/Makefile.am
new file mode 100644
index 0000000..674784a
--- /dev/null
+++ b/vendor/Makefile.am
@@ -0,0 +1,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)