]> rtime.felk.cvut.cz Git - omk.git/blob - tests/bin_scripts.sh
Update wvtool
[omk.git] / tests / bin_scripts.sh
1 #!/bin/bash
2
3 . wvtest.sh
4
5 [[ $OMK_RULES != "linux" ]] && exit 0
6
7 cat > Makefile.omk <<EOF
8 bin_SCRIPTS = scripta scriptb
9 EOF
10
11 echo a > scripta
12 echo b > scriptb
13
14 omkize
15
16 WVPASS make
17
18 WVPASS cmp scripta _compiled/bin/scripta
19 WVPASS cmp scriptb _compiled/bin/scriptb
20
21 # make sure that implicit built-in default rules didn't try to rebuild
22 # scripta from scripta.c
23 WVPASS touch scripta.c
24 WVPASS make COMMENT="do not attempt to compile stripta.c"
25 WVPASS cmp scripta _compiled/bin/scripta