summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makeconf5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makeconf b/Makeconf
index 3d9e2ca7..a9c94974 100644
--- a/Makeconf
+++ b/Makeconf
@@ -143,8 +143,13 @@ install: $(addprefix $(libdir)/,$(targets)) $(addprefix $(includedir)/$(installh
# it never needs to be repeated for a particular header.
INSTALLED_LOCAL_HEADERS=$(addprefix $(top_srcdir)/$(installhdrsubdir)/,$(installhdrs))
libs: $(INSTALLED_LOCAL_HEADERS)
+ifeq ($(installhdrsubdir),.)
+$(INSTALLED_LOCAL_HEADERS): $(top_srcdir)/$(installhdrsubdir)/%:
+ ln -s $(dir)/$* $@
+else
$(INSTALLED_LOCAL_HEADERS): $(top_srcdir)/$(installhdrsubdir)/%:
ln -s ../$(dir)/$* $@
+endif
$(libdir)/$(libname).a: $(libname).a
$(INSTALL_DATA) $(libname).a $(libdir)/$(libname).a