guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[dmd] 02/04: build: Install 'shutdown' as a symlink to 'halt'.


From: Ludovic Courtès
Subject: [dmd] 02/04: build: Install 'shutdown' as a symlink to 'halt'.
Date: Thu, 07 Jan 2016 23:09:22 +0000

civodul pushed a commit to branch master
in repository dmd.

commit f7aa0ba739df2d7eedfae2dfedb79056dc6f821b
Author: Ludovic Courtès <address@hidden>
Date:   Thu Jan 7 21:49:38 2016 +0100

    build: Install 'shutdown' as a symlink to 'halt'.
    
    * Makefile.am (install-exec-hook): Depend on
    'install-executable-symlinks'.
    (install-executable-symlinks, uninstall-hook): New targets.
---
 Makefile.am |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 35f242d..54993f0 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -70,7 +70,7 @@ install-data-local:
 
 # Relocate the script---i.e., have them refer to the installed module
 # directory.
-install-exec-hook:
+install-exec-hook: install-executable-symlinks
        for script in                                           \
           $(bin_SCRIPTS:%=$(DESTDIR)$(bindir)/%)               \
           $(sbin_SCRIPTS:%=$(DESTDIR)$(sbindir)/%) ;           \
@@ -80,6 +80,15 @@ install-exec-hook:
                 -i $$script ;                                  \
        done
 
+# Install 'shutdown' as a symlink to 'halt; XXX: someday we'll do
+# better.
+install-executable-symlinks:
+       cd $(DESTDIR)$(sbindir); ln -s halt shutdown
+
+# Remove the 'shutdown' symlink.
+uninstall-hook:
+       cd $(DESTDIR)$(sbindir); rm -f shutdown
+
 # 'sed' expression to instantiate templates.
 instantiate =                                          \
   -e 's,%PREFIX%,${prefix},g'                          \



reply via email to

[Prev in Thread] Current Thread [Next in Thread]