From 0fa3752a9cdb237407d90b4cb47956972ecca31b Mon Sep 17 00:00:00 2001 From: Peter Baumann Date: Wed, 28 Jul 2010 09:02:33 +0200 Subject: proper installation of C++ example Makefile and documentation --- manuals_and_examples/Makefile.am | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/manuals_and_examples/Makefile.am b/manuals_and_examples/Makefile.am index 743979e..6233e65 100644 --- a/manuals_and_examples/Makefile.am +++ b/manuals_and_examples/Makefile.am @@ -27,10 +27,13 @@ nobase_dist_pkgdata_DATA=examples/images/* examples/c++/* \ dest_Makefile=$(DESTDIR)$(pkgdatadir)/examples/c++/Makefile -all: doc # examples - -doc: doxygen-all.cfg doxygen-api.cfg doxygen-basedbms.cfg +install-data-hook: + -# Set the rasdaman installation root to allow Make finding + -# include/ and lib/ for the C++ examples. + sed 's|~~~rmanhome~~~|$(prefix)|' <$(dest_Makefile) >$(dest_Makefile).new + mv $(dest_Makefile).new $(dest_Makefile) + -# install documentation (cd ..; doxygen manuals_and_examples/doxygen-all.cfg) (cd ..; doxygen manuals_and_examples/doxygen-api.cfg) (cd ..; doxygen manuals_and_examples/doxygen-basedbms.cfg) - + mv manuals/ $(DESTDIR)$(pkgdatadir)/doc -- cgit