Path to gperf (helpful for Haiku), via scottmc.
This commit is contained in:
parent
d933049406
commit
28e62c4bde
1 changed files with 8 additions and 3 deletions
11
Makefile
11
Makefile
|
|
@ -4,7 +4,7 @@
|
||||||
# bill@newbreedsoftware.com
|
# bill@newbreedsoftware.com
|
||||||
# http://www.tuxpaint.org/
|
# http://www.tuxpaint.org/
|
||||||
|
|
||||||
# June 14, 2002 - April 26, 2011
|
# June 14, 2002 - July 2, 2011
|
||||||
|
|
||||||
|
|
||||||
# The version number, for release:
|
# The version number, for release:
|
||||||
|
|
@ -18,17 +18,22 @@ MAGIC_API_VERSION:=0x00000003
|
||||||
SYSNAME:=$(shell uname -s)
|
SYSNAME:=$(shell uname -s)
|
||||||
ifeq ($(findstring MINGW32, $(SYSNAME)),MINGW32)
|
ifeq ($(findstring MINGW32, $(SYSNAME)),MINGW32)
|
||||||
OS:=windows
|
OS:=windows
|
||||||
|
GPERF:=/usr/bin/gperf
|
||||||
else
|
else
|
||||||
ifeq ($(SYSNAME),Darwin)
|
ifeq ($(SYSNAME),Darwin)
|
||||||
OS:=osx
|
OS:=osx
|
||||||
|
GPERF:=/usr/bin/gperf
|
||||||
else
|
else
|
||||||
ifeq ($(SYSNAME),BeOS)
|
ifeq ($(SYSNAME),BeOS)
|
||||||
OS:=beos
|
OS:=beos
|
||||||
|
GPERF:=$(shell finddir B_USER_BIN_DIRECTORY)/gperf
|
||||||
else
|
else
|
||||||
ifeq ($(SYSNAME),Haiku)
|
ifeq ($(SYSNAME),Haiku)
|
||||||
OS:=beos
|
OS:=beos
|
||||||
|
GPERF:=$(shell finddir B_COMMON_BIN_DIRECTORY)/gperf
|
||||||
else
|
else
|
||||||
OS:=linux
|
OS:=linux
|
||||||
|
GPERF:=/usr/bin/gperf
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
@ -968,8 +973,8 @@ obj/parse.c: obj/parse_step1.c
|
||||||
obj/parse_step1.c: src/parse.gperf
|
obj/parse_step1.c: src/parse.gperf
|
||||||
@echo
|
@echo
|
||||||
@echo "...Generating the command-line and config file parser (STEP 1)..."
|
@echo "...Generating the command-line and config file parser (STEP 1)..."
|
||||||
@if [ -x /usr/bin/gperf ] ; then \
|
@if [ -x $(GPERF) ] ; then \
|
||||||
gperf src/parse.gperf > obj/parse_step1.c ; \
|
$(GPERF) src/parse.gperf > obj/parse_step1.c ; \
|
||||||
else \
|
else \
|
||||||
echo "Please install 'gperf' and try again!" ; \
|
echo "Please install 'gperf' and try again!" ; \
|
||||||
false ; \
|
false ; \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue