summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--manuals_and_examples/Makefile.am11
1 files 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