summaryrefslogtreecommitdiff
path: root/emacs/Makefile.am
diff options
context:
space:
mode:
authorLudovic Courtès2007-12-13 15:55:58 +0100
committerLudovic Courtès2007-12-13 15:55:58 +0100
commitb38a4b43a6ac84df4e8d09d8dae803927cc68e9d (patch)
treebb81e913b76419acd3b5bc74ac6367e06b77962b /emacs/Makefile.am
parenteeb11b1464537651f88aa15171e83261c2257402 (diff)
downloadskribilo-b38a4b43a6ac84df4e8d09d8dae803927cc68e9d.tar.gz
skribilo-b38a4b43a6ac84df4e8d09d8dae803927cc68e9d.tar.lz
skribilo-b38a4b43a6ac84df4e8d09d8dae803927cc68e9d.zip
Perform proper substitution in `skribe.el'.
* emacs/Makefile.am (EXTRA_DIST, lisp_DATA, CLEANFILES): New. (dist_lisp_DATA): Remove. (.in): New. Include `substitute.am'. * emacs/skribe.el: Remove. * emacs/skribe.el.in (skribe-version): Use `@PACKAGE_VERSION@'. (skribe-emacs-dir): Use `@lispdir@'. (skribe-docdirs): Use `@docdir@'. (skribe-host-scheme-docdirs): Use Guile's URL. * substitute.am: Substitute `$(lispdir)'.
Diffstat (limited to 'emacs/Makefile.am')
-rw-r--r--emacs/Makefile.am11
1 files changed, 10 insertions, 1 deletions
diff --git a/emacs/Makefile.am b/emacs/Makefile.am
index d3cdcf2..85084df 100644
--- a/emacs/Makefile.am
+++ b/emacs/Makefile.am
@@ -1 +1,10 @@
-dist_lisp_DATA = skribe.el
+EXTRA_DIST = skribe.el.in
+lisp_DATA = skribe.el
+
+CLEANFILES = $(lisp_DATA)
+
+include $(top_srcdir)/substitute.am
+
+.in:
+ $(substitute) "$^" > "$@.tmp" && \
+ mv "$@.tmp" "$@"