]> rtime.felk.cvut.cz Git - omk.git/blob - tests/sources_in_subdirectory
test: Allow testing only a single type of rules
[omk.git] / tests / sources_in_subdirectory
1 #!/bin/bash
2
3 . ./functions.sh
4
5 case $OMK_RULES in
6     linux|sysless)
7         ;;
8     *) exit 0
9 esac
10
11 touch config.omk-default
12 mkdir dir
13 cd dir
14 cp ../Makefile ../Makefile.omk . 
15 mkdir -p dir1 dir2/dir3
16 touch dir1/b.c dir2/dir3/c.c
17 echo 'void main() {}' > a.c
18
19 make CC=cc
20
21 find ../_build -type d -name dir3 || error "dir3 not found"
22
23 exit 0