From 07e3f4c7212722df67e980ad849409e42561490d Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Fri, 7 Jul 1995 04:29:00 +0000 Subject: (install) [doinst == one || doinst == many]: Don't install files if they already exist and are up to date. --- Makeconf | 10 ++++++---- 1 file 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) -- cgit v1.2.3