Add support for installing tool executables.
authorBrian Gaeke <gaeke@uiuc.edu>
Wed, 10 Dec 2003 00:26:28 +0000 (00:26 +0000)
committerBrian Gaeke <gaeke@uiuc.edu>
Wed, 10 Dec 2003 00:26:28 +0000 (00:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10351 91177308-0d34-0410-b5e6-96231b3b80d8

Makefile.rules

index fb28ff201f66d0db6deb8e63929cc0045346934c..132536d4828e0cc404bf003e20b1d9f7700663d9 100644 (file)
@@ -129,10 +129,6 @@ prdirs::
 # Variables derived from configuration options... 
 #--------------------------------------------------------------------
 
-#BinInstDir=/usr/local/bin
-#LibInstDir=/usr/local/lib/xxx
-#DocInstDir=/usr/doc/xxx
-
 BURG_OPTS = -I
 
 ifdef ENABLE_PROFILING
@@ -684,6 +680,10 @@ $(TOOLEXENAME_P): $(ObjectsP) $(USED_LIB_PATHS_P) $(DESTTOOLPROFILE)/.dir
        $(VERB) $(LinkP) -o $@ $(ObjectsP) $(LIB_OPTS_P) $(LINK_OPTS) $(LIBS)
        @${ECHO} ======= Finished building $(TOOLNAME) profile executable =======
 
+install:: $(TOOLEXENAMES)
+       $(MKDIR) $(bindir)
+       $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) -c -m 0755 $(TOOLEXENAMES) $(bindir)/$(TOOLNAME)
+
 endif