(sieve.scm): Use auxiliary sed script to
create. (pkgdata_DATA): Rename to sievemod_DATA
Showing
1 changed file
with
19 additions
and
6 deletions
1 | ## Process this file with GNU Automake to create Makefile.in | 1 | ## Process this file with GNU Automake to create Makefile.in |
2 | 2 | ||
3 | ## Copyright (C) 2001, 2002 Free Software Foundation, Inc. | 3 | ## Copyright (C) 2001, 2002, 2006 Free Software Foundation, Inc. |
4 | ## | 4 | ## |
5 | ## GNU Mailutils is free software; you can redistribute it and/or | 5 | ## GNU Mailutils is free software; you can redistribute it and/or |
6 | ## modify it under the terms of the GNU General Public License as | 6 | ## modify it under the terms of the GNU General Public License as |
... | @@ -19,17 +19,30 @@ | ... | @@ -19,17 +19,30 @@ |
19 | 19 | ||
20 | bin_SCRIPTS = sieve.scm | 20 | bin_SCRIPTS = sieve.scm |
21 | 21 | ||
22 | sieve.scm: sieve.scm.in | 22 | sievemoddir=$(GUILE_SITE)/sieve-modules |
23 | sed "s,%GUILE_BINDIR%,@GUILE_BINDIR@,g;s,%BINDIR%,$(bindir),g;s,%LIBDIR%,$(pkgdatadir),g;s,%PACKAGE%,$(PACKAGE),g;s,%VERSION%,$(VERSION),g" $? > $@ | ||
24 | 23 | ||
25 | CLEANFILES = sieve.scm | 24 | sieve.scm: sieve.scm.in sieve.sed |
25 | sed -f sieve.sed $(srcdir)/sieve.scm.in > sieve.scm | ||
26 | 26 | ||
27 | pkgdata_DATA=\ | 27 | sieve.sed: Makefile |
28 | echo 's,%GUILE_BINDIR%,@GUILE_BINDIR@,g' > sieve.sed | ||
29 | echo 's,%BINDIR%,$(bindir),g' >> sieve.sed | ||
30 | echo 's,%GUILE_SITE%,$(GUILE_SITE),g' >> sieve.sed | ||
31 | echo 's,%LIBDIR%,$(sievemoddir),g' >> sieve.sed | ||
32 | echo 's,%PACKAGE%,$(PACKAGE),g' >> sieve.sed | ||
33 | echo 's,%VERSION%,$(VERSION),g' >> sieve.sed | ||
34 | |||
35 | CLEANFILES = sieve.scm sieve.sed | ||
36 | |||
37 | sitedir=$(GUILE_SITE)/$(PACKAGE) | ||
38 | GUILE_SITE_DATA_X=sieve-core.scm | ||
39 | site_DATA=@GUILE_SITE_DATA@ | ||
40 | |||
41 | sievemod_DATA=\ | ||
28 | mimeheader.scm\ | 42 | mimeheader.scm\ |
29 | numaddr.scm\ | 43 | numaddr.scm\ |
30 | redirect.scm\ | 44 | redirect.scm\ |
31 | reject.scm\ | 45 | reject.scm\ |
32 | sieve-core.scm\ | ||
33 | vacation.scm | 46 | vacation.scm |
34 | 47 | ||
35 | EXTRA_DIST=\ | 48 | EXTRA_DIST=\ | ... | ... |
-
Please register or sign in to post a comment