mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-25 10:54:52 +01:00
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.
This commit is contained in:
parent
1ddba66a3f
commit
0a575c9580
1 changed files with 4 additions and 0 deletions
4
Makefile
4
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)
|
||||
|
|
Loading…
Reference in a new issue