4 .PHONY: in-place mk-version-symlinks install
8 # @if test -x "./post-inplace-script" ; then \
9 # echo "Running project-specific post-inplace script ..." ; \
10 # ./post-inplace-script $(platform) `pwd` \
11 # $(package)-$(version); \
14 # @echo "Finished configuring..to use, add `pwd`/bin/$(platform) to your PATH."
17 $(INSTALL_DIR) $(bindir)
18 (cd lib/$(platform); find . -type d -exec sh -c '$(INSTALL_DIR) $$0 $(libdir)/$$0' {} \; )
19 (cd share; find . -type d -exec sh -c '$(INSTALL_DIR) $(datadir)/$$0' {} \; )
22 $(MAKE) -C includes install DOING_BIN_DIST=YES
23 $(MAKE) -C driver install DOING_BIN_DIST=YES
24 $(MAKE) -C utils install DOING_BIN_DIST=YES
25 $(MAKE) -C rts install DOING_BIN_DIST=YES
26 $(MAKE) -C libraries install DOING_BIN_DIST=YES
27 $(MAKE) -C compiler install DOING_BIN_DIST=YES
29 install :: install-docs postinstall denounce
31 .PHONY: postinstall denounce
35 @echo =======================================================================
36 @echo Installation of $(package)-$(version) was successful.
38 @echo To use, add $(bindir) to your PATH.
40 @if test -f share/html/index.html; then \
41 echo For documentation, see $(htmldir)/index.html ; \
42 elif test -d share/html ; then \
43 echo Docs can be found in $(htmldir). ; \
45 echo "Warning: this binary distribution does NOT contain documentation!" ; \
47 @echo =======================================================================
50 @if test -x "./post-install-script" ; then \
51 echo "Running project-specific post-install script ..." ; \
52 ./post-install-script $(platform) $(libdir) ; \
57 @echo "Install setup..."
58 @echo "bindir = $(bindir)"
59 @echo "libdir = $(libdir) (libdir = $(libdir))"
60 @echo "datadir = $(datadir) (datadir = $(datadir))"
63 # Documentation targets: install-docs.
66 .PHONY: show-install-setup install-docs install-dirs-docs
68 install-docs : install-dirs-docs
69 if test -d share/html ; then $(CP) -r share/html/* $(htmldir) ; fi
70 set -e; for i in share/*.ps; do \
71 if test -f "$$i"; then \
72 $(CP) $$i $(psdir) ; \
77 $(INSTALL_DIR) $(htmldir)