summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-06-27 13:58:11 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-06-27 13:58:11 +0000
commita95f36dfa10db160c15a216018b3f0c9a6f55aa4 (patch)
tree494ebc6914ebb9806226a34040ad8559fd8e4580 /Makefile
parent5bdde5146a4b8519d4979614d323013084b3b735 (diff)
(linked-files, lf-inst): New variables.
(cp-linked-files): Use implicit rule. ($(lfinst)): New implicit rule.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index c789fcd4..df190c6f 100644
--- a/Makefile
+++ b/Makefile
@@ -79,10 +79,11 @@ install: $(addsuffix -install,$(lib-subdirs) $(working-prog-subdirs))
lndist: cp-linked-files
-cp-linked-files:
- cp $(srcdir)/install-sh $(srcdir)/hurd-snap/install-sh
- cp $(srcdir)/config.guess $(srcdir)/hurd-snap/config.guess
- cp $(srcdir)/config.sub $(srcdir)/hurd-snap/config.sub
+linked-files = install-sh config.guess config.sub mkinstalldirs
+lf-inst = $(addprefix $(srcdir)/hurd-snap/,$(linked-files))
+cp-linked-files: $(lf-inst)
+$(lfinst): $(srcdir)/hurd-snap/%: $(srcdir)/%
+ cp $< $@
TAGS: $(addsuffix -TAGS,$(prog-subdirs) $(lib-subdirs))