summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)