More flexible build with TARGET

This commit is contained in:
Emil 2023-09-27 05:58:21 +00:00
parent 6605459fb9
commit bc2c675571
No known key found for this signature in database
GPG Key ID: 5432DB986FDBCF8A

View File

@ -2,4 +2,4 @@
cd $(dirname "$(readlink -f "$0")") cd $(dirname "$(readlink -f "$0")")
SUDO=${SUDO:-sudo} SUDO=${SUDO:-sudo}
cc baked.c -o baked -std=gnu99 -O2 -Wall -Wextra -Wpedantic -pipe $CFLAGS cc baked.c -o baked -std=gnu99 -O2 -Wall -Wextra -Wpedantic -pipe $CFLAGS
$SUDO install -m 755 baked /usr/local/bin $SUDO install -m 755 baked ${TARGET:-/usr/local/bin}