[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[shepherd] 04/06: build: Install Guile modules to the usual place.
From: |
Ludovic Courtès |
Subject: |
[shepherd] 04/06: build: Install Guile modules to the usual place. |
Date: |
Wed, 27 Jan 2016 10:24:12 +0000 |
civodul pushed a commit to branch master
in repository shepherd.
commit 1be92699ea34a271b927afdab6ea19b29f8ab900
Author: Ludovic Courtès <address@hidden>
Date: Wed Jan 27 10:44:45 2016 +0100
build: Install Guile modules to the usual place.
* Makefile.am (shepherddir): Remove.
(dist_shepherd_DATA): Rename to...
(dist_guilemodule_DATA): ... this.
(nodist_shepherd_DATA): Rename to...
(nodist_guilemodule_DATA): ... this.
* configure.ac: Define and substitute 'guilemoduledir'.
---
Makefile.am | 13 ++++++-------
configure.ac | 3 +++
2 files changed, 9 insertions(+), 7 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index ecd3cb9..99c20ec 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -30,12 +30,11 @@ BUILT_SOURCES = modules/shepherd/config.scm
# The source files.
# XXX: we can't use 'nobase_' because of the modules/ subdirectory.
-shepherddir = ${datadir}/shepherd
-dist_shepherd_DATA = \
+dist_guilemodule_DATA = \
modules/shepherd.scm
-nodist_shepherd_DATA = $(dist_shepherd_DATA:%.scm=%.go)
+nodist_guilemodule_DATA = $(dist_guilemodule_DATA:%.scm=%.go)
-shepherdsubdir = $(shepherddir)/shepherd
+shepherdsubdir = $(guilemoduledir)/shepherd
dist_shepherdsub_DATA = \
modules/shepherd/args.scm \
modules/shepherd/service.scm \
@@ -58,7 +57,7 @@ nodist_scripts_DATA = \
$(dist_scripts_DATA:%.scm=%.go)
CLEANFILES = \
- $(nodist_shepherd_DATA) $(nodist_shepherdsub_DATA) \
+ $(nodist_guilemodule_DATA) $(nodist_shepherdsub_DATA) \
$(nodist_scripts_DATA) \
$(bin_SCRIPTS) $(sbin_SCRIPTS)
@@ -83,8 +82,8 @@ install-exec-hook: install-executable-symlinks
$(bin_SCRIPTS:%=$(DESTDIR)$(bindir)/%) \
$(sbin_SCRIPTS:%=$(DESTDIR)$(sbindir)/%) ; \
do \
- $(SED) -e's|$(abs_top_srcdir)/modules|$(shepherddir)|g' \
- -e's|$(abs_top_builddir)/modules|$(shepherddir)|g' \
+ $(SED) -e's|$(abs_top_srcdir)/modules|$(guilemoduledir)|g' \
+ -e's|$(abs_top_builddir)/modules|$(guilemoduledir)|g' \
-i $$script ; \
done
diff --git a/configure.ac b/configure.ac
index 75ddb30..26ce88a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -43,6 +43,9 @@ if test "x$GUILD" = "x"; then
fi
AC_SUBST([GUILD])
+guilemoduledir="${datarootdir}/guile/site/2.0"
+AC_SUBST([guilemoduledir])
+
dnl
dnl Low-level operating system interface.
dnl
- [shepherd] branch master updated (88c6a20 -> 83567c4), Ludovic Courtès, 2016/01/27
- [shepherd] 06/06: Default system-wide config file is now /etc/shepherd.scm., Ludovic Courtès, 2016/01/27
- [shepherd] 01/06: Canonicalize the running value to valid read syntax., Ludovic Courtès, 2016/01/27
- [shepherd] 03/06: Move commands to (shepherd scripts xyz)., Ludovic Courtès, 2016/01/27
- [shepherd] 04/06: build: Install Guile modules to the usual place.,
Ludovic Courtès <=
- [shepherd] 02/06: Add the list of conflicting services to the status sexp., Ludovic Courtès, 2016/01/27
- [shepherd] 05/06: build: Build man pages., Ludovic Courtès, 2016/01/27