diff options
author | Mathieu Lirzin <mthl@gnu.org> | 2016-11-12 16:23:00 +0100 |
---|---|---|
committer | Mathieu Lirzin <mthl@gnu.org> | 2016-11-12 17:07:57 +0100 |
commit | 1e5012ca803bbc4e08982f99d6c902e75dcb4421 (patch) | |
tree | 964c405c40890ff7f9becba420eeb8ad6e5707af /src | |
parent | 12d71ee098c3eb84a9a5dc2419bd37a3b9e55dd2 (diff) | |
download | cuirass-1e5012ca803bbc4e08982f99d6c902e75dcb4421.tar cuirass-1e5012ca803bbc4e08982f99d6c902e75dcb4421.tar.gz |
build: Let 'make' generate 'src/cuirass/config.scm'.
* Makefile.am (src/cuirass/config.scm, $(go_files)): New targets.
(do_subst, generate_file, go_files): New variables.
(EXTRA_DIST): Distribute 'src/cuirass/config.scm.in'.
(DISTCLEANFILES): Rename to ...
(MOSTLYCLEANFILES): ... this.
* configure.ac (AC_CONFIG_FILES): Remove 'src/cuirass/config.scm'.
(@expanded_datadir@, @expanded_localstatedir@): Delete.
(AC_PROG_MKDIR_P, AC_PROG_SED): Use them.
* src/cuirass/config.scm (%datadir): Set it to $(localstatedir).
(%localstatdir): Set it to $(datadir).
Diffstat (limited to 'src')
-rw-r--r-- | src/cuirass/config.scm.in | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/cuirass/config.scm.in b/src/cuirass/config.scm.in index b8f4ae3..9ae99ab 100644 --- a/src/cuirass/config.scm.in +++ b/src/cuirass/config.scm.in @@ -1,4 +1,5 @@ -;;; config.scm -- variables defined at configure time +;;;; config.scm -- constants defined by the build system. +;;; @configure_input@ ;;; Copyright © 2016 Mathieu Lirzin <mthl@gnu.org> ;;; ;;; This file is part of Cuirass. @@ -48,8 +49,8 @@ (define-public %datadir ;; Define to DATADIR without reference to '${prefix}'. - "@expanded_datadir@") + "@datadir@") (define-public %localstatedir ;; Define to LOCALSTATEDIR without reference to '${prefix}'. - "@expanded_localstatedir@") + "@localstatedir@") |