- (cd lib/$(platform)/$(package)-$(version); find . -type d -exec sh -c '../../../$(INSTALL_DIR) $$0 $(real_libdir)/$$0' {} \; )
- (cd share/$(package)-$(version); find . -type d -exec sh -c '../../$(INSTALL_DIR) $$0 $(real_datadir)/$$0' {} \; )
-
-install :: config-pkgs mk-version-symlinks install-dirs install-bin install-libs install-datas
-
-.PHONY: install-bin install-libs install-datas
+ (cd lib/$(platform); find . -type d -exec sh -c '../../$(INSTALL_DIR) $$0 $(libdir)/$$0' {} \; )
+ (cd share; find . -type d -exec sh -c '../$(INSTALL_DIR) $(datadir)/$$0' {} \; )
+
+install :: config-pkgs install-dirs install-bin install-libs install-datas install-docs postinstall denounce
+
+.PHONY: install-bin install-libs install-datas postinstall denounce
+
+denounce:
+ @echo
+ @echo =======================================================================
+ @echo Installation of $(package)-$(version) was successful.
+ @echo
+ @echo To use, add $(bindir) to your PATH.
+ @echo
+ @if test -f share/html/index.html; then \
+ echo For documentation, see $(htmldir)/index.html ; \
+ elif test -d share/html ; then \
+ echo Docs can be found in $(htmldir). ; \
+ else \
+ echo "Warning: this binary distribution does NOT contain documentation!" ; \
+ fi
+ @echo =======================================================================
+
+postinstall:
+ @if test -x "./post-install-script" ; then \
+ echo "Running project-specific post-install script ..." ; \
+ ./post-install-script $(platform) $(libdir) ; \
+ echo "Done" ; \
+ fi