Remove remaining bits of bindist "make in-place"
[ghc-hetmet.git] / distrib / Makefile
index f058996..06c1f29 100644 (file)
@@ -1,20 +1,21 @@
 
 include Makefile-vars
 
-.PHONY: in-place mk-version-symlinks install
+.PHONY: mk-version-symlinks install
 
-in-place ::
-       @if test -x "./post-inplace-script" ; then \
-               echo "Running project-specific post-inplace script ..." ; \
-               ./post-inplace-script $(platform) `pwd` \
-                       $(package)-$(version); \
-               echo "Done" ; \
-       fi
-       @echo "Finished configuring..to use, add `pwd`/bin/$(platform) to your PATH."
+#.PHONY: in-place
+# This has bitrotted:
+#in-place ::
+#      @if test -x "./post-inplace-script" ; then \
+#              echo "Running project-specific post-inplace script ..." ; \
+#              ./post-inplace-script $(platform) `pwd` \
+#                      $(package)-$(version); \
+#              echo "Done" ; \
+#      fi
+#      @echo "Finished configuring..to use, add `pwd`/bin/$(platform) to your PATH."
 
 install ::
        $(INSTALL_DIR) $(bindir)
-       (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::
@@ -24,6 +25,7 @@ install::
        $(MAKE) -C rts       install DOING_BIN_DIST=YES
        $(MAKE) -C libraries install DOING_BIN_DIST=YES
        $(MAKE) -C compiler  install DOING_BIN_DIST=YES
+       $(INSTALL_DATA) $(INSTALL_OPTS) extra-gcc-opts $(libdir)
 
 install :: install-docs postinstall denounce