File: domake

package info (click to toggle)
avr-libc 20020203-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,448 kB
  • ctags: 6,562
  • sloc: ansic: 7,631; asm: 4,424; sh: 2,703; makefile: 338; pascal: 289
file content (34 lines) | stat: -rwxr-xr-x 883 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/sh
#
# Do make for the avr libc.
#
# usage: domake
#        or
#        domake install
#        or
#        domake any_other_make_target
#
# This script will execute make in the build directory.
# It will first set the path to the path, where the cross compiler
# can be found. If your cross compiler is in an other directory,
# please change the "PREFIX:" line below or specify it at the command line
# ("PREFIX=what_you_want domake").
# If you have the path to the cross compiler in your default path, you will
# not need this script.
# Go to the build directory and execute make.
#
# This script needs, that the "doconf" script was executed befor.
#

# where does it go? (allow to overwrite it at the command line)
: ${PREFIX:=/usr/local}

if test ! -f ./build/Makefile; then
   echo "You must run doconf first!"
   exit 1
fi

cd build
PATH=$PREFIX/bin:$PATH
make $*
cd ..