diff options
author | Michael I. Bushnell <mib@gnu.org> | 1996-05-09 16:18:53 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1996-05-09 16:18:53 +0000 |
commit | 3a555d5be70bc8c3c9118ec89aec9dacc77f26bc (patch) | |
tree | 2c31da07e613020c195888fcbfd91b62face5f11 | |
parent | 6729e1cab4b32be9daec090a286c619075d1df16 (diff) |
(INSTALLED_LOCAL_HEADERS): New variable that $(libs) depends on.
This arranges to make sure that headers exported by this library
always get installed eventually into the source directory as symlinks.
-rw-r--r-- | Makeconf | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -138,6 +138,14 @@ all: libs libs: $(targets) install: $(addprefix $(libdir)/,$(targets)) $(addprefix $(includedir)/$(installhdrsubdir)/,$(installhdrs)) +# Arrange to have the headers installed locally anytime we build the library. +# Not quite perfect, but at least it does end up getting done; and once done +# it never needs to be repeated for a particular header. +INSTALLED_LOCAL_HEADERS=$(addprefix $(top_srcdir)/$(installhdrsubdir)/,$(installhdrs)) +libs: $(INSTALLED_LOCAL_HEADERS) +$(INSTALLED_LOCAL_HEADERS): $(top_srcdir)/$(installhdrsubdir)/%: + ln -s ../$(dir)/$* $@ + $(libdir)/$(libname).a: $(libname).a $(INSTALL_DATA) $(libname).a $(libdir)/$(libname).a $(RANLIB) $(libdir)/$(libname).a |