Makefile: add helpers for cross-compilation

Do not hardcode '/usr/local' but allow it to be overriden from the
outside. Also disable the second DEFAULTFONTDIR by default. While here,
remove some whitespace characters.

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
This commit is contained in:
Wolfram Sang 2011-01-25 21:27:27 +01:00 committed by Claudio Matsuoka
parent 5841eaef60
commit 934c450250

View File

@ -28,16 +28,19 @@ LDFLAGS =
# define TLF_FONTS to use TOIlet TLF fonts
XCFLAGS = -DTLF_FONTS
# Where to install files
prefix = /usr/local
# Where the executables should be put
BINDIR = /usr/local/bin
BINDIR = $(prefix)/bin
# Where the man page should be put
MANDIR = /usr/local/man
MANDIR = $(prefix)/man
# Where figlet will search first for fonts (the ".flf" files).
DEFAULTFONTDIR = /usr/local/share/figlet
# Use this definition if you can't put things in /usr/local/share/figlet
DEFAULTFONTDIR = fonts
DEFAULTFONTDIR = $(prefix)/share/figlet
# Use this definition if you can't put things in $(prefix)/share/figlet
#DEFAULTFONTDIR = fonts
# The filename of the font to be used if no other is specified,
# without suffix.(standard is recommended, but any other can be
@ -47,7 +50,7 @@ DEFAULTFONTFILE = standard
##
## END OF CONFIGURATION SECTION
##
##
VERSION = 2.2.3
DIST = figlet-$(VERSION)