4 .PHONY: install-strip install postinstall denounce show-install-setup
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 $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' install
21 $(INSTALL_DIR) $(bindir)
24 $(MAKE) -C includes install DOING_BIN_DIST=YES
25 $(MAKE) -C driver install DOING_BIN_DIST=YES
26 $(MAKE) -C utils install DOING_BIN_DIST=YES
27 $(MAKE) -C rts install DOING_BIN_DIST=YES
28 $(MAKE) -C libraries install DOING_BIN_DIST=YES
29 $(MAKE) -C compiler install DOING_BIN_DIST=YES
30 $(MAKE) -C gmp install DOING_BIN_DIST=YES
31 $(MAKE) -C docs install-docs DOING_BIN_DIST=YES
32 $(MAKE) -C libraries/Cabal/doc install-docs DOING_BIN_DIST=YES
33 $(INSTALL_DATA) $(INSTALL_OPTS) extra-gcc-opts $(libdir)
35 install :: postinstall denounce
37 # Look to see if $(bindir) is in $(PATH). Assumes there are no funky
39 GREPPED_PATH=$(shell echo "$(PATH)" | grep "\(^\|:\)$(bindir)\(:\|$$\)")
43 @echo =======================================================================
44 @echo Installation of $(package)-$(version) was successful.
46 ifneq "$(GREPPED_PATH)" ""
47 @echo To use, add $(bindir) to your PATH.
50 @if test -f $(htmldir)/index.html; then \
51 echo For documentation, see $(htmldir)/index.html ; \
53 echo "Warning: this binary distribution does NOT contain documentation!" ; \
55 @echo =======================================================================
58 @if test -x "./post-install-script" ; then \
59 echo "Running project-specific post-install script ..." ; \
60 ./post-install-script $(platform) $(libdir) ; \
65 @echo "Install setup..."
66 @echo "bindir = $(bindir)"
67 @echo "libdir = $(libdir) (libdir = $(libdir))"
68 @echo "datadir = $(datadir) (datadir = $(datadir))"