diff options
author | Michael I. Bushnell <mib@gnu.org> | 1996-07-13 23:10:03 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1996-07-13 23:10:03 +0000 |
commit | aeda39d8e6c69f87159c7de51a910fa6598da825 (patch) | |
tree | a78b38563c6cebe053a47912aebf7a45ac39bb73 /config/Makefile | |
parent | eb8473cb530d37e78f81023ff2fe1ca6b457b989 (diff) |
(ROOTDOTS, installed_rootdots): New variables.
(install): Depend on $(installed_rootdots).
($(installed_rootdots): New target.
Diffstat (limited to 'config/Makefile')
-rw-r--r-- | config/Makefile | 11 |
1 files changed, 10 insertions, 1 deletions
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)/$* |