From 9aea4530aa8baac60346e2ed954b7fac2ec3f838 Mon Sep 17 00:00:00 2001 From: Frank Dellaert Date: Mon, 12 Jul 2010 22:49:21 +0000 Subject: [PATCH] Fixed make install interaction with MATLAB wrapper code --- Makefile.am | 8 -------- wrap/Makefile.am | 7 +++++++ 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/Makefile.am b/Makefile.am index 5cc4c5388..100e6f32a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -35,14 +35,6 @@ libgtsam_la_LDFLAGS = -version-info 0:0:0 noinst_HEADERS = gtsam.h EXTRA_DIST = autogen.sh configure.ac THANKS -# install the headers and matlab toolbox -# TODO: wrap is only called after the toolbox is installed! -install-exec-hook: - install -d ${toolbox}/gtsam && \ - cp -rf toolbox/* ${toolbox}/gtsam && \ - install -d ${prefix}/include/wrap && \ - cp -f wrap/wrap-matlab.h ${prefix}/include/wrap/matlab.h - # Todo: Also do CppUnitLite with automake dist-hook: mkdir $(distdir)/config diff --git a/wrap/Makefile.am b/wrap/Makefile.am index 48b87158e..4ea34ad47 100644 --- a/wrap/Makefile.am +++ b/wrap/Makefile.am @@ -24,6 +24,13 @@ AM_LDFLAGS = -L../CppUnitLite -lCppUnitLite $(BOOST_LDFLAGS) TESTS = $(check_PROGRAMS) +# install the headers and matlab toolbox +install-exec-hook: all + install -d ${toolbox}/gtsam && \ + cp -rf ../toolbox/* ${toolbox}/gtsam && \ + install -d ${includedir}/wrap && \ + cp -f wrap-matlab.h ${includedir}/wrap/matlab.h + # clean local toolbox dir clean: @test -z "wrap" || rm -f wrap