4 .PHONY: mk-version-symlinks install
9 # @if test -x "./post-inplace-script" ; then \
10 # echo "Running project-specific post-inplace script ..." ; \
11 # ./post-inplace-script $(platform) `pwd` \
12 # $(package)-$(version); \
15 # @echo "Finished configuring..to use, add `pwd`/bin/$(platform) to your PATH."
18 $(INSTALL_DIR) $(bindir)
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
28 $(INSTALL_DATA) $(INSTALL_OPTS) extra-gcc-opts $(libdir)
30 install :: install-docs postinstall denounce
32 .PHONY: postinstall denounce
36 @echo =======================================================================
37 @echo Installation of $(package)-$(version) was successful.
39 @echo To use, add $(bindir) to your PATH.
41 @if test -f share/html/index.html; then \
42 echo For documentation, see $(htmldir)/index.html ; \
43 elif test -d share/html ; then \
44 echo Docs can be found in $(htmldir). ; \
46 echo "Warning: this binary distribution does NOT contain documentation!" ; \
48 @echo =======================================================================
51 @if test -x "./post-install-script" ; then \
52 echo "Running project-specific post-install script ..." ; \
53 ./post-install-script $(platform) $(libdir) ; \
58 @echo "Install setup..."
59 @echo "bindir = $(bindir)"
60 @echo "libdir = $(libdir) (libdir = $(libdir))"
61 @echo "datadir = $(datadir) (datadir = $(datadir))"
64 # Documentation targets: install-docs.
67 .PHONY: show-install-setup install-docs install-dirs-docs
69 install-docs : install-dirs-docs
70 if test -d share/html ; then $(CP) -r share/html/* $(htmldir) ; fi
71 set -e; for i in share/*.ps; do \
72 if test -f "$$i"; then \
73 $(CP) $$i $(psdir) ; \
78 $(INSTALL_DIR) $(htmldir)