-install :: config-pkgs install-dirs install-bin install-libs install-datas
-
-.PHONY: install-bin install-libs install-datas
+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