File: configure

package info (click to toggle)
entr 4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 232 kB
  • sloc: ansic: 1,545; sh: 342; makefile: 9
file content (29 lines) | stat: -rwxr-xr-x 494 bytes parent folder | download | duplicates (2)
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
#!/bin/sh

copy_mk() {
    cmd="cp Makefile.$1 Makefile"
    echo "$cmd"; $cmd
}

case `uname` in
    Darwin) copy_mk macos ;;
    Linux)  copy_mk linux ;;
    GNU/kFreeBSD) copy_mk kfreebsd ;;
    *)      copy_mk bsd ;;
esac

[ $# = 0 ] && exit 0

cat <<HELP
Adjust build options by setting the following environment variables:

`make env`

Example: build a static binary and install to your home directory

./configure
CFLAGS="-static" make test
PREFIX=\$HOME/local make install

HELP
exit 1