summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/config/Makefile b/config/Makefile
index 4a90c788..449de230 100644
--- a/config/Makefile
+++ b/config/Makefile
@@ -26,11 +26,11 @@ makemode := misc
# If override_conf is set to `t' then install even on top of existing
# files.
SYSCONFFILES = protocols services shells motd ttys
-installed_conf = $(addprefix $(sysconfdir)/$(SYSCONFFILES))
+installed_conf = $(addprefix $(sysconfdir)/,$(SYSCONFFILES))
# Mere symlinks are installed for these
LINKEDCONFFILES = rc
-installed_links = $(addprefix $(sysconfdir)/$(LINKEDCONFFILES))
+installed_links = $(addprefix $(sysconfdir)/,$(LINKEDCONFFILES))
ifeq ($(override_conf),t)
foo=$(shell touch /dev/null)
@@ -41,7 +41,7 @@ endif
install: $(installed_conf) $(installed_links)
$(installed_conf): $(sysconfdir)/%: %
- $(INSTALL_DATA) $< $@
+ $(INSTALL_DATA) $< $(sysconfdir)/$*
$(sysconfdir)/rc:
ln -s ../libexec/rc $(sysconfdir)/rc