diff options
author | Michael I. Bushnell <mib@gnu.org> | 1996-07-13 22:43:31 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1996-07-13 22:43:31 +0000 |
commit | 4f2dc79d0d657e12c322317ee917e2cac3f767b6 (patch) | |
tree | e83204999c82f520c211b722eea76cf6e319fec0 /config/Makefile | |
parent | f6f45b718bf13f95480e0f63098aecd87858aee8 (diff) |
(LOGINDOTS, installed_logins): New variables.
install: Depend on $(installed_logins).
($(installed_logins)): New rule.
Diffstat (limited to 'config/Makefile')
-rw-r--r-- | config/Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/config/Makefile b/config/Makefile index caea00fc..6f9bd6ef 100644 --- a/config/Makefile +++ b/config/Makefile @@ -28,6 +28,9 @@ makemode := misc SYSCONFFILES = protocols services shells motd ttys hostname fstab passwd installed_conf = $(addprefix $(sysconfdir)/,$(SYSCONFFILES)) +LOGINDOTS = .bash_login .bashrc .hushlogin .profile README +installed_logins = $(addprefix $(sysconfdir)/login/,$(LOGINDOTS)) + # Mere symlinks are installed for these LINKEDCONFFILES = rc installed_links = $(addprefix $(sysconfdir)/,$(LINKEDCONFFILES)) @@ -39,7 +42,11 @@ else override_spec = endif -install: $(installed_conf) $(installed_links) +install: $(installed_conf) $(installed_links) $(installed_logins) +$(installed_logins): $(sysconfdir)/login/%: login-% + mkdir -p $(sysconfdir)/login + $(INSTALL_DATA) $< $(sysconfdir)/$* + $(installed_conf): $(sysconfdir)/%: % $(INSTALL_DATA) $< $(sysconfdir)/$* |