aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-12-03 05:45:04 +0100
committerMattias Andrée <maandree@operamail.com>2015-12-03 05:45:04 +0100
commitb6d863a4fd9e39d57ad3e8bf4e977c9b0997c355 (patch)
treee128bd974a54ebc11d69d429f9a4eccb6c6580b7 /Makefile
parentwhitespace (diff)
downloadlibrarian-b6d863a4fd9e39d57ad3e8bf4e977c9b0997c355.tar.gz
librarian-b6d863a4fd9e39d57ad3e8bf4e977c9b0997c355.tar.bz2
librarian-b6d863a4fd9e39d57ad3e8bf4e977c9b0997c355.tar.xz
get LIBRARIAN_PATH
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index f83fc37..adb5c04 100644
--- a/Makefile
+++ b/Makefile
@@ -17,6 +17,9 @@ LICENSEDIR = $(DATADIR)/licenses
PKGNAME = librarian
COMMAND = librarian
+# Default value for the environment variable LIBRARIAN_PATH.
+LIBRARIAN_PATH = /usr/local/share/librarian:/usr/share/librarian
+
OPTIMISE = -Og -g
WARN = -Wall -Wextra -Wdouble-promotion -Wformat=2 -Winit-self -Wmissing-include-dirs \
@@ -30,7 +33,7 @@ WARN = -Wall -Wextra -Wdouble-promotion -Wformat=2 -Winit-self -Wmissing-include
-Wsuggest-attribute=pure -Wsuggest-attribute=format -Wnormalized=nfkc -pedantic
#OPTIMISE = -O2
#WARN = -Wall -Wextra -pedantic
-FLAGS = -std=c99 $(WARN) $(OPTIMISE)
+FLAGS = -std=c99 $(WARN) $(OPTIMISE) -D'DEFAULT_PATH="$(LIBRARIAN_PATH)"'