aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Carl Worth <cworth@cworth.org>2009-10-22 15:31:56 -0700
committerGravatar Carl Worth <cworth@cworth.org>2009-10-22 15:31:56 -0700
commit6a4992bc611881b363583b4a20fc530c770aedd8 (patch)
tree7b5a8465e86e1cd3f732fc62115474eb7ae0aae1 /Makefile
parent5794496c6e8b49ab62478b21a2178e5e2e353399 (diff)
Generate message ID (using SHA1) when a mail message contains none.
This is important as we're using the message ID as the unique key in our database. So previously, all messages with no message ID would be treated as the same message---not good at all.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 12 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ff654e11..13f2b28d 100644
--- a/Makefile
+++ b/Makefile
@@ -5,6 +5,17 @@ MYCXXFLAGS=$(MYCFLAGS) `xapian-config --cxxflags`
MYLDFLAGS=`pkg-config --libs glib-2.0 talloc` `xapian-config --libs`
+MODULES= \
+ notmuch.o \
+ database.o \
+ date.o \
+ message.o \
+ message-file.o \
+ query.o \
+ sha1.o \
+ libsha1.o \
+ xutil.o
+
all: $(PROGS)
%.o: %.cc
@@ -13,7 +24,7 @@ all: $(PROGS)
%.o: %.c
$(CC) -c $(CFLAGS) $(MYCFLAGS) $< -o $@
-notmuch: notmuch.o database.o date.o message.o message-file.o query.o xutil.o
+notmuch: $(MODULES)
$(CC) $(MYLDFLAGS) $^ -o $@
Makefile.dep: *.c *.cc