summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1995-07-07 04:29:00 +0000
committerMichael I. Bushnell <mib@gnu.org>1995-07-07 04:29:00 +0000
commit07e3f4c7212722df67e980ad849409e42561490d (patch)
treeeb1a0872f8a4369bc7608db9e66f439a9c75e27b
parent1a4d8cc113db6acfd97797a4160595e9b5cfc80a (diff)
(install) [doinst == one || doinst == many]: Don't install files if
they already exist and are up to date.
-rw-r--r--Makeconf10
1 files changed, 6 insertions, 4 deletions
diff --git a/Makeconf b/Makeconf
index 8733e443..8ba5484c 100644
--- a/Makeconf
+++ b/Makeconf
@@ -107,14 +107,16 @@ CFLAGS += -Wall -g
# Installation
ifeq ($(doinst),one)
all: $(target)
-install: $(target)
- $(INSTALL_BIN) $(target) $(installationdir)/$(target)
+install: $(installationdir)/$(target)
+$(installationdir)/$(target): $(target)
+ $(INSTALL_BIN) $< $@
endif
ifeq ($(doinst),many)
all: $(targets)
-install: $(targets)
- for i in $(targets) ; do $(INSTALL_BIN) $$i $(installationdir)/$$i ; done
+install: $(addprefix $(installationdir)/,$(targets))
+$(addprefix $(installationdir)/,$(targets)): %(installationdir)/%: %
+ $(INSTALL_BIN) $< $@
endif
ifeq ($(makemode),library)