From: simonm Date: Mon, 12 Jan 1998 14:15:04 +0000 (+0000) Subject: [project @ 1998-01-12 14:15:04 by simonm] X-Git-Tag: Approx_2487_patches~1102 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=93f4317ed0044f5b65cea869275a0479652a42f8;p=ghc-hetmet.git [project @ 1998-01-12 14:15:04 by simonm] add INSTALL_BIN_LINKS for linking things in $(bindir) --- diff --git a/mk/target.mk b/mk/target.mk index 5becd56..31365a3 100644 --- a/mk/target.mk +++ b/mk/target.mk @@ -424,6 +424,7 @@ endif # get one install rule # # INSTALL_PROGS executable programs in $(bindir) +# INSTALL_BIN_LINKS symbolic links to executable programs in $(bindir) # INSTALL_SCRIPTS executable scripts in $(bindir) # INSTALL_LIBS platform-dependent libraries in $(libdir) (ranlib'ed) # INSTALL_LIBEXECS platform-dependent execs in $(libdir) @@ -467,6 +468,14 @@ install:: $(INSTALL_PROGS) done endif +ifneq "$(INSTALL_BIN_LINKS)" "" +install:: $(INSTALL_BIN_LINKS) + @$(INSTALL_DIR) $(bindir) + for i in $(INSTALL_BIN_LINKS); do \ + $(INSTALL_PROGRAM) $(INSTALL_OPTS) $$i$(exeext) $(bindir); \ + done +endif + # # Just like INSTALL_PROGS, but prefix with install sites bin/lib/data and # install without stripping.