diff options
author | wkendrick <wkendrick> | 2011-01-11 17:49:16 (GMT) |
---|---|---|
committer | wkendrick <wkendrick> | 2011-01-11 17:49:16 (GMT) |
commit | d4a8354dbf0caf962dac20b972b6774c16368cdf (patch) | |
tree | 8f755e2419762a2ebe244dfa4f2ae1862501dc76 | |
parent | 31ca6b9c6663dba0b81d97242516c6f25cc10eb5 (diff) |
Trying to detect whether 'gperf' is installed, and if not, abort build.
-rw-r--r-- | Makefile | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -1,10 +1,10 @@ # Tux Paint - A simple drawing program for children. -# Copyright (c) 2002-2010 by Bill Kendrick and others +# Copyright (c) 2002-2011 by Bill Kendrick and others # bill@newbreedsoftware.com # http://www.tuxpaint.org/ -# June 14, 2002 - April 27, 2010 +# June 14, 2002 - January 11, 2011 # The version number, for release: @@ -960,12 +960,17 @@ obj/tuxpaint.o: src/tuxpaint.c \ obj/parse.c: obj/parse_step1.c @echo @echo "...Generating the command-line and config file parser (STEP 2)..." - sed -r -e 's/^const struct/static const struct/' -e 's/_GNU/_TUX/' obj/parse_step1.c > obj/parse.c + @sed -r -e 's/^const struct/static const struct/' -e 's/_GNU/_TUX/' obj/parse_step1.c > obj/parse.c obj/parse_step1.c: src/parse.gperf @echo @echo "...Generating the command-line and config file parser (STEP 1)..." - @gperf src/parse.gperf > obj/parse_step1.c + @if [ -x /usr/bin/gperf ] ; then \ + gperf src/parse.gperf > obj/parse_step1.c ; \ + else \ + echo "Please install 'gperf' and try again!" ; \ + false ; \ + fi obj/parse.o: obj/parse.c src/parse.h src/compiler.h @echo |