Fix to work in new location (utils/) and to use gmake instead of gnumake
authorVikram S. Adve <vadve@cs.uiuc.edu>
Wed, 18 Sep 2002 23:22:27 +0000 (23:22 +0000)
committerVikram S. Adve <vadve@cs.uiuc.edu>
Wed, 18 Sep 2002 23:22:27 +0000 (23:22 +0000)
since gnumake doesn't exist on our new spiffy Linux machines.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3815 91177308-0d34-0410-b5e6-96231b3b80d8

utils/makellvm

index ad92e5ac64d900e04ed33433fa3f93a00a9f3b89..f7ee7de1500530cfa12a762ad863df8f1fd42d5d 100755 (executable)
@@ -1,8 +1,8 @@
 #!/bin/csh -f
 
        ## LLVMDIR is simply the directory where this script resides!
-set THISEXEC = $0              ## cannot use :h on $0 for some reason
-set LLVMDIR = $THISEXEC:h
+set thisExec = $0              ## cannot use :h on $0 for some reason
+set LLVMDIR = `echo {$thisExec:h} | sed 's/\/utils$//'`
 set EXEC = opt
 
 if ($#argv > 0) then
@@ -13,4 +13,4 @@ if ($#argv > 0) then
     set EXEC = $argv[1]
 endif
 
-gnumake && (cd $LLVMDIR/tools/$EXEC && gnumake)
+gmake && (cd $LLVMDIR/tools/$EXEC && gmake)