summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1998-12-01 15:57:41 +0000
committerRoland McGrath <roland@gnu.org>1998-12-01 15:57:41 +0000
commit52c4c2f0dc0892ee606df12990c93b62b653fd32 (patch)
tree7a33588ebcb1b8d6427c969019f5380a8d329e25
parent9bea81c84fca860b0ef82dcd8a7aa109cf4d9f97 (diff)
1998-11-29 Roland McGrath <roland@baalperazim.frob.com>
* Makeconf ($(libdir) installation rules): Use automatic variables. Use a static pattern rule for foo.a and foo_p.a, treated the same.
-rw-r--r--Makeconf11
1 files changed, 4 insertions, 7 deletions
diff --git a/Makeconf b/Makeconf
index 12c10f9e..fbad837a 100644
--- a/Makeconf
+++ b/Makeconf
@@ -201,14 +201,11 @@ $(INSTALLED_LOCAL_HEADERS): $(top_srcdir)/$(installhdrsubdir)/%:
endif
libs: $(INSTALLED_LOCAL_HEADERS)
-$(libdir)/$(libname)_p.a: $(libname)_p.a
- $(INSTALL_DATA) $(libname)_p.a $(libdir)/$(libname)_p.a
- $(RANLIB) $(libdir)/$(libname)_p.a
-$(libdir)/$(libname).a: $(libname).a
- $(INSTALL_DATA) $(libname).a $(libdir)/$(libname).a
- $(RANLIB) $(libdir)/$(libname).a
+$(addprefix $(libdir)/$(libname),_p.a .a): $(libdir)/%: %
+ $(INSTALL_DATA) $< $@
+ $(RANLIB) $@
$(libdir)/$(libname).so: $(libname).so
- $(INSTALL_DATA) $(libname).so $(libdir)/$(libname).so
+ $(INSTALL_DATA) $< $@
$(addprefix $(includedir)/$(installhdrsubdir)/,$(installhdrs)): $(includedir)/$(installhdrsubdir)/%: %
$(INSTALL_DATA) $< $@