mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 02:48:08 +01:00
lib: Fix "make install"
This has been broken since the addition of the test sub-directory to our non-recursive make system.
This commit is contained in:
parent
9c7fd320c9
commit
8071c5cd64
1 changed files with 6 additions and 2 deletions
|
@ -76,13 +76,17 @@ $(dir)/$(LINKER_NAME): $(dir)/$(SONAME)
|
|||
|
||||
install: install-$(dir)
|
||||
|
||||
# The (often-reused) $dir works fine within targets/pre-requisites,
|
||||
# but cannot be used reliably within commands, so copy its value to a
|
||||
# variable that is not reused.
|
||||
lib := $(dir)
|
||||
install-$(dir):
|
||||
mkdir -p $(DESTDIR)$(libdir)/
|
||||
install -m0644 $(dir)/$(LIBNAME) $(DESTDIR)$(libdir)/
|
||||
install -m0644 $(lib)/$(LIBNAME) $(DESTDIR)$(libdir)/
|
||||
ln -sf $(LIBNAME) $(DESTDIR)$(libdir)/$(SONAME)
|
||||
ln -sf $(LIBNAME) $(DESTDIR)$(libdir)/$(LINKER_NAME)
|
||||
mkdir -p $(DESTDIR)$(includedir)
|
||||
install -m0644 $(dir)/notmuch.h $(DESTDIR)$(includedir)/
|
||||
install -m0644 $(lib)/notmuch.h $(DESTDIR)$(includedir)/
|
||||
$(LIBRARY_INSTALL_POST_COMMAND)
|
||||
|
||||
SRCS := $(SRCS) $(libnotmuch_c_srcs) $(libnotmuch_cxx_srcs)
|
||||
|
|
Loading…
Reference in a new issue