aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Carl Worth <cworth@cworth.org>2009-11-20 13:07:42 +0100
committerGravatar Carl Worth <cworth@cworth.org>2009-11-20 13:07:42 +0100
commit0a575c95804da3cb740ebe2fbece862f19dce35a (patch)
tree5bbf9250f6f952d4920b90840c5bfb1850c814a9 /Makefile
parent1ddba66a3f4a7a118bc774d16cde00739144afcf (diff)
Makefile: Hard-code emacs_lispdir if emacs pkg-config file not available
Using pkg-config to find this variable is nice if it works. Go back to the previously used value if it doesn't.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 9e44d90a..0411cbbe 100644
--- a/Makefile
+++ b/Makefile
@@ -8,6 +8,10 @@ extra_cflags := $(shell pkg-config --cflags glib-2.0 gmime-2.4 talloc)
extra_cxxflags := $(shell xapian-config --cxxflags)
emacs_lispdir := $(shell pkg-config emacs --variable sitepkglispdir)
+# Hard-code if this system doesn't have an emacs.pc file
+ifeq ($(emacs_lispdir),)
+ emacs_lispdir = $(prefix)/share/site-lisp
+endif
# Now smash together user's values with our extra values
override CFLAGS += $(WARN_FLAGS) $(extra_cflags)