From aeda39d8e6c69f87159c7de51a910fa6598da825 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Sat, 13 Jul 1996 23:10:03 +0000 Subject: (ROOTDOTS, installed_rootdots): New variables. (install): Depend on $(installed_rootdots). ($(installed_rootdots): New target. --- config/Makefile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'config/Makefile') diff --git a/config/Makefile b/config/Makefile index 6f9bd6ef..665baa29 100644 --- a/config/Makefile +++ b/config/Makefile @@ -31,6 +31,9 @@ installed_conf = $(addprefix $(sysconfdir)/,$(SYSCONFFILES)) LOGINDOTS = .bash_login .bashrc .hushlogin .profile README installed_logins = $(addprefix $(sysconfdir)/login/,$(LOGINDOTS)) +ROOTDOTS = .bash_login .bashrc .profile +installed_rootdots = $(addprefix $(prefix)/root,$(ROOTDOTS)) + # Mere symlinks are installed for these LINKEDCONFFILES = rc installed_links = $(addprefix $(sysconfdir)/,$(LINKEDCONFFILES)) @@ -42,7 +45,13 @@ else override_spec = endif -install: $(installed_conf) $(installed_links) $(installed_logins) +install: $(installed_conf) $(installed_links) $(installed_logins) \ + $(installed_rootdots) + +$(installed_rootdots): $(prefix)/root/%: root-% + mkdir -p $(prefix)/root + $(INSTALL_DATA) $< $(prefix)/$* + $(installed_logins): $(sysconfdir)/login/%: login-% mkdir -p $(sysconfdir)/login $(INSTALL_DATA) $< $(sysconfdir)/$* -- cgit v1.2.3