Simplify build system. Don't build if ghc not found.
Cat's Eye Technologies
8 years ago
0 | #!/bin/sh | |
1 | ||
2 | if [ x`which ghc` = x -a x`which runhugs` = x ]; then | |
3 | echo "Neither ghc nor runhugs found on search path." | |
4 | exit 1 | |
5 | fi | |
6 | ||
7 | if [ x`which ghc` = x ]; then | |
8 | echo "ghc not found on search path. Use Hugs to run." | |
9 | exit 0 | |
10 | fi | |
11 | ||
12 | ghc --make src/Burro.lhs | |
13 | ||
14 | # Burro${O}: Burro.lhs | |
15 | # ${HC} ${HCFLAGS} -c $*.lhs | |
16 | # | |
17 | # ${PROG}: ${OBJS} | |
18 | # ${HC} -o ${PROG} -O ${OBJS} | |
19 | # strip ${PROG} |