From 460af126b2b18c68dc2f7b2ba7b493d864ff91bf Mon Sep 17 00:00:00 2001 From: simonmar Date: Tue, 8 Mar 2005 11:50:42 +0000 Subject: [PATCH] [project @ 2005-03-08 11:50:42 by simonmar] Build & install runhaskell, but only install it if there isn't already a $(bindir)/runhaskell. --- ghc/utils/runghc/Makefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/ghc/utils/runghc/Makefile b/ghc/utils/runghc/Makefile index 213422e..cd2f607 100644 --- a/ghc/utils/runghc/Makefile +++ b/ghc/utils/runghc/Makefile @@ -31,4 +31,16 @@ SRC_MKDEPENDHS_OPTS += \ -optdep--exclude-module=Distribution.Version \ -optdep--exclude-module=System.Directory.Internals +all :: runhaskell + +runhaskell : $(HS_PROG) + $(CP) $< runhaskell + +# Only install runhaskell if there isn't already one installed +ifneq "$(findstring install, $(MAKECMDGOALS))" "" +ifeq "$(wildcard $(bindir)/runhaskell)" "" +INSTALL_PROGS += runhaskell +endif +endif + include $(TOP)/mk/target.mk -- 1.7.10.4