Add the 'wmake' script to /usr/bin and wmake support to Makefile.inc1.
[dragonfly.git] / usr.bin / wmake / wmake.sh
1 #!/bin/sh
2 #
3 # $DragonFly: src/usr.bin/wmake/wmake.sh,v 1.1 2003/08/11 00:25:17 dillon Exp $
4 #
5 # This script was written by Matt dillon and has been placed in the
6 # public domain.
7
8 path=$PWD
9 while [ "$path" != "" ]; do
10     if [ -f $path/Makefile.inc1 ]; then
11         break
12     fi
13     path=${path%/*}
14 done
15 if [ "$path" = "" ]; then
16     echo "Unable to locate Makefile.inc through parent dirs"
17 fi
18
19 eval `cd $path; make WMAKE_ARGS="$@" -f Makefile.inc1 wmake`
20