From 7b52b2c318e449c73146bd48c7f32145f158f3f5 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Wed, 31 Mar 2010 22:47:12 -0700 Subject: Move installation of library from top-level to lib/Makefile.local We had a fairly ugly violation of modularity with the top-level Makefile.local isntalling everything, (even when the build commands for the library were down in lib/Makefile.local). --- lib/Makefile.local | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lib/Makefile.local') diff --git a/lib/Makefile.local b/lib/Makefile.local index 7105070b..b24a3571 100644 --- a/lib/Makefile.local +++ b/lib/Makefile.local @@ -1,3 +1,5 @@ +SONAME = libnotmuch.so.1 + dir := lib extra_cflags += -I$(dir) -fPIC @@ -25,5 +27,13 @@ $(dir)/$(SONAME) : $(libnotmuch_modules) $(dir)/libnotmuch.so: $(dir)/$(SONAME) ln -fs $(SONAME) $@ +install: install-$(dir) + +install-$(dir): + install -d $(DESTDIR)$(libdir)/ + install $(dir)/$(SONAME) $(DESTDIR)$(libdir)/ + install $(dir)/notmuch.h $(DESTDIR)$(prefix)/include/ + ln -sf $(SONAME) $(DESTDIR)$(libdir)/libnotmuch.so + SRCS := $(SRCS) $(libnotmuch_c_srcs) $(libnotmuch_cxx_srcs) CLEAN := $(CLEAN) $(libnotmuch_modules) $(dir)/$(SONAME) $(dir)/libnotmuch.so *.so -- cgit v1.2.3