[project @ 1998-01-12 14:15:04 by simonm]
authorsimonm <unknown>
Mon, 12 Jan 1998 14:15:04 +0000 (14:15 +0000)
committersimonm <unknown>
Mon, 12 Jan 1998 14:15:04 +0000 (14:15 +0000)
add INSTALL_BIN_LINKS for linking things in $(bindir)

mk/target.mk

index 5becd56..31365a3 100644 (file)
@@ -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.