X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=lib%2FMakefile.local;fp=lib%2FMakefile.local;h=5dc4f634a183feb96a959fc1b5d8d6743d19f353;hb=9979b998666f839e0bbc11fff8265b6462bea799;hp=495b27e06eebd225fdf3958d219103e6ac2cd208;hpb=fc3b51f799ba5da9deafbbc4f75cf72b897a6ac8;p=obsolete%2Fnotmuch-old diff --git a/lib/Makefile.local b/lib/Makefile.local index 495b27e0..5dc4f634 100644 --- a/lib/Makefile.local +++ b/lib/Makefile.local @@ -1,7 +1,7 @@ dir := lib extra_cflags += -I$(dir) -libnotmuch_c_srcs = \ +libnotmuch_c_srcs := \ $(dir)/libsha1.c \ $(dir)/message-file.c \ $(dir)/messages.c \ @@ -9,7 +9,7 @@ libnotmuch_c_srcs = \ $(dir)/tags.c \ $(dir)/xutil.c -libnotmuch_cxx_srcs = \ +libnotmuch_cxx_srcs := \ $(dir)/database.cc \ $(dir)/directory.cc \ $(dir)/index.cc \ @@ -17,8 +17,8 @@ libnotmuch_cxx_srcs = \ $(dir)/query.cc \ $(dir)/thread.cc -libnotmuch_modules = $(libnotmuch_c_srcs:.c=.o) $(libnotmuch_cxx_srcs:.cc=.o) -$(dir)/notmuch.a: $(libnotmuch_modules) +libnotmuch_modules := $(libnotmuch_c_srcs:.c=.o) $(libnotmuch_cxx_srcs:.cc=.o) +$(dir)/notmuch.a: $(libnotmuch_modules) $(getdate_modules) $(call quiet,AR) rcs $@ $^ SRCS := $(SRCS) $(libnotmuch_c_srcs) $(libnotmuch_cxx_srcs)