summaryrefslogtreecommitdiff
path: root/libstore
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-03-14 21:29:15 +0000
committerRoland McGrath <roland@gnu.org>2002-03-14 21:29:15 +0000
commit493f0d8a8b5dcc8011797959e972ccfa38f9f845 (patch)
tree2ae1edee006e3449f881092a33dc5c6c5c881d9f /libstore
parentaa3ca7044b1125c920850faf733dd97ce55f01ce (diff)
2002-03-14 Roland McGrath <roland@frob.com>
* Makefile (cleantarg): Append $(store-types:%=libstore_%.a) here. (all): Depend on that list too. (install): Depend on those files in $(libdir). ($(store-types:%=$(libdir)/libstore_%.a): $(libdir)/%: %): New static pattern rule to install them.
Diffstat (limited to 'libstore')
-rw-r--r--libstore/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/libstore/Makefile b/libstore/Makefile
index 93dc1562..7fa566b4 100644
--- a/libstore/Makefile
+++ b/libstore/Makefile
@@ -100,6 +100,10 @@ libstore_%.so.$(hurd-version): %_pic.o libstore.so
$(store-types:%=libstore_%.a): libstore_%.a: $(srcdir)/Makefile
$(CC) -r -nostdlib -nostartfiles -x c /dev/null \
-o $@ -u store_$*_class
+cleantarg += $(store-types:%=libstore_%.a)
-# XXX need to install these
all: $(store-types:%=libstore_%.a)
+
+install: $(store-types:%=$(libdir)/libstore_%.a)
+$(store-types:%=$(libdir)/libstore_%.a): $(libdir)/%: %
+ $(INSTALL_DATA) $< $@