X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=Makefile;h=588f8538eb44d4ab1002390bad7457a47b1e0da1;hp=6a2ecea58a604b2549e8b5330280686a8f6fb82d;hb=fcc36df1fa37b940a46a3c14f0ccee8a39875145;hpb=e806e723c8ac8f97a3f8ba0e0048708a8f5bb475 diff --git a/Makefile b/Makefile index 6a2ecea5..588f8538 100644 --- a/Makefile +++ b/Makefile @@ -10,30 +10,18 @@ EMACS ?= emacs # arguments to gzip. gzip = gzip -# Additional flags that we will append to whatever the user set. -# These aren't intended for the user to manipulate. -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/emacs/site-lisp -endif - bash_completion_dir = /etc/bash_completion.d all_deps = Makefile Makefile.local Makefile.config \ lib/Makefile lib/Makefile.local +extra_cflags := +extra_cxxflags := + # Now smash together user's values with our extra values override CFLAGS += $(WARN_CFLAGS) $(extra_cflags) override CXXFLAGS += $(WARN_CXXFLAGS) $(extra_cflags) $(extra_cxxflags) -override LDFLAGS += \ - $(shell pkg-config --libs glib-2.0 gmime-2.4 talloc) \ - $(shell xapian-config --libs) - all: notmuch notmuch.1.gz # Before including any other Makefile fragments, get settings from the