Fixed make install interaction with MATLAB wrapper code

release/4.3a0
Frank Dellaert 2010-07-12 22:49:21 +00:00
parent 1b92c1ae9f
commit 9aea4530aa
2 changed files with 7 additions and 8 deletions

View File

@ -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

View File

@ -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