summaryrefslogtreecommitdiff
path: root/guimb/scm/Makefile.am
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2006-04-21 22:03:13 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2006-04-21 22:03:13 +0000
commitf6006384efb56b029b942512f81c1734df386f8e (patch)
treee8440ac367871d623108cfb23154c005fe7654c4 /guimb/scm/Makefile.am
parentf433cd501a3d57637d3b6fbc39fb5898e1b32e57 (diff)
downloadmailutils-f6006384efb56b029b942512f81c1734df386f8e.tar.gz
mailutils-f6006384efb56b029b942512f81c1734df386f8e.tar.bz2
(sieve.scm): Use auxiliary sed script to
create. (pkgdata_DATA): Rename to sievemod_DATA
Diffstat (limited to 'guimb/scm/Makefile.am')
-rw-r--r--guimb/scm/Makefile.am25
1 files changed, 19 insertions, 6 deletions
diff --git a/guimb/scm/Makefile.am b/guimb/scm/Makefile.am
index 653b497d5..355e465ef 100644
--- a/guimb/scm/Makefile.am
+++ b/guimb/scm/Makefile.am
@@ -1,6 +1,6 @@
## Process this file with GNU Automake to create Makefile.in
-## Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+## Copyright (C) 2001, 2002, 2006 Free Software Foundation, Inc.
##
## GNU Mailutils is free software; you can redistribute it and/or
## modify it under the terms of the GNU General Public License as
@@ -19,17 +19,30 @@
bin_SCRIPTS = sieve.scm
-sieve.scm: sieve.scm.in
- sed "s,%GUILE_BINDIR%,@GUILE_BINDIR@,g;s,%BINDIR%,$(bindir),g;s,%LIBDIR%,$(pkgdatadir),g;s,%PACKAGE%,$(PACKAGE),g;s,%VERSION%,$(VERSION),g" $? > $@
+sievemoddir=$(GUILE_SITE)/sieve-modules
-CLEANFILES = sieve.scm
+sieve.scm: sieve.scm.in sieve.sed
+ sed -f sieve.sed $(srcdir)/sieve.scm.in > sieve.scm
-pkgdata_DATA=\
+sieve.sed: Makefile
+ echo 's,%GUILE_BINDIR%,@GUILE_BINDIR@,g' > sieve.sed
+ echo 's,%BINDIR%,$(bindir),g' >> sieve.sed
+ echo 's,%GUILE_SITE%,$(GUILE_SITE),g' >> sieve.sed
+ echo 's,%LIBDIR%,$(sievemoddir),g' >> sieve.sed
+ echo 's,%PACKAGE%,$(PACKAGE),g' >> sieve.sed
+ echo 's,%VERSION%,$(VERSION),g' >> sieve.sed
+
+CLEANFILES = sieve.scm sieve.sed
+
+sitedir=$(GUILE_SITE)/$(PACKAGE)
+GUILE_SITE_DATA_X=sieve-core.scm
+site_DATA=@GUILE_SITE_DATA@
+
+sievemod_DATA=\
mimeheader.scm\
numaddr.scm\
redirect.scm\
reject.scm\
- sieve-core.scm\
vacation.scm
EXTRA_DIST=\

Return to:

Send suggestions and report system problems to the System administrator.