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:
parent
5841eaef60
commit
934c450250
19
Makefile
19
Makefile
@ -1,5 +1,5 @@
|
|||||||
# Makefile for figlet version 2.2.3 (11 Jan 2011)
|
# Makefile for figlet version 2.2.3 (11 Jan 2011)
|
||||||
# adapted from Makefile for figlet version 2.2.2 (05 July 2005)
|
# adapted from Makefile for figlet version 2.2.2 (05 July 2005)
|
||||||
# adapted from Makefile for figlet version 2.2 (15 Oct 1996)
|
# adapted from Makefile for figlet version 2.2 (15 Oct 1996)
|
||||||
# Copyright 1993, 1994,1995 Glenn Chappell and Ian Chai
|
# Copyright 1993, 1994,1995 Glenn Chappell and Ian Chai
|
||||||
# Copyright 1996, 1997, 1998, 1999, 2000, 2001 John Cowan
|
# Copyright 1996, 1997, 1998, 1999, 2000, 2001 John Cowan
|
||||||
@ -28,16 +28,19 @@ LDFLAGS =
|
|||||||
# define TLF_FONTS to use TOIlet TLF fonts
|
# define TLF_FONTS to use TOIlet TLF fonts
|
||||||
XCFLAGS = -DTLF_FONTS
|
XCFLAGS = -DTLF_FONTS
|
||||||
|
|
||||||
|
# Where to install files
|
||||||
|
prefix = /usr/local
|
||||||
|
|
||||||
# Where the executables should be put
|
# Where the executables should be put
|
||||||
BINDIR = /usr/local/bin
|
BINDIR = $(prefix)/bin
|
||||||
|
|
||||||
# Where the man page should be put
|
# Where the man page should be put
|
||||||
MANDIR = /usr/local/man
|
MANDIR = $(prefix)/man
|
||||||
|
|
||||||
# Where figlet will search first for fonts (the ".flf" files).
|
# Where figlet will search first for fonts (the ".flf" files).
|
||||||
DEFAULTFONTDIR = /usr/local/share/figlet
|
DEFAULTFONTDIR = $(prefix)/share/figlet
|
||||||
# Use this definition if you can't put things in /usr/local/share/figlet
|
# Use this definition if you can't put things in $(prefix)/share/figlet
|
||||||
DEFAULTFONTDIR = fonts
|
#DEFAULTFONTDIR = fonts
|
||||||
|
|
||||||
# The filename of the font to be used if no other is specified,
|
# The filename of the font to be used if no other is specified,
|
||||||
# without suffix.(standard is recommended, but any other can be
|
# without suffix.(standard is recommended, but any other can be
|
||||||
@ -47,7 +50,7 @@ DEFAULTFONTFILE = standard
|
|||||||
|
|
||||||
##
|
##
|
||||||
## END OF CONFIGURATION SECTION
|
## END OF CONFIGURATION SECTION
|
||||||
##
|
##
|
||||||
|
|
||||||
VERSION = 2.2.3
|
VERSION = 2.2.3
|
||||||
DIST = figlet-$(VERSION)
|
DIST = figlet-$(VERSION)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user