]> git.notmuchmail.org Git - notmuch/blob - test/corpora/default/cur/50:2,
Import notmuch_0.27.orig.tar.gz
[notmuch] / test / corpora / default / cur / 50:2,
1 From: "Chris Wilson" <chris@chris-wilson.co.uk>
2 To: notmuch@notmuchmail.org
3 Date: Wed, 18 Nov 2009 11:34:54 +0000
4 Subject: [notmuch] [PATCH 1/2] Makefile: evaluate pkg-config once
5 Message-ID: <1258544095-16616-1-git-send-email-chris@chris-wilson.co.uk>
6
7 Currently the same `pkg-config ...` is executed for every target, so
8 just store the results in a variable.
9 ---
10  Makefile |    9 +++++----
11  1 files changed, 5 insertions(+), 4 deletions(-)
12
13 diff --git a/Makefile b/Makefile
14 index 96aaa73..023b2ec 100644
15 --- a/Makefile
16 +++ b/Makefile
17 @@ -4,15 +4,16 @@ CFLAGS=-O2
18  
19  # Additional flags that we will append to whatever the user set.
20  # These aren't intended for the user to manipulate.
21 -extra_cflags = `pkg-config --cflags glib-2.0 gmime-2.4 talloc`
22 -extra_cxxflags = `xapian-config --cxxflags`
23 +extra_cflags := $(shell pkg-config --cflags glib-2.0 gmime-2.4 talloc)
24 +extra_cxxflags := $(shell xapian-config --cxxflags)
25  
26  # Now smash together user's values with our extra values
27  override CFLAGS += $(WARN_FLAGS) $(extra_cflags)
28  override CXXFLAGS += $(WARN_FLAGS) $(extra_cflags) $(extra_cxxflags)
29  
30 -override LDFLAGS += `pkg-config --libs glib-2.0 gmime-2.4 talloc` \
31 -                       `xapian-config --libs`
32 +override LDFLAGS += \
33 +       $(shell pkg-config --libs glib-2.0 gmime-2.4 talloc) \
34 +       $(shell xapian-config --libs)
35  
36  # Include our local Makefile.local first so that its first target is default
37  include Makefile.local
38 -- 
39 1.6.5.2