aboutsummaryrefslogtreecommitdiff
path: root/ellinika/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'ellinika/Makefile.am')
-rw-r--r--ellinika/Makefile.am31
1 files changed, 19 insertions, 12 deletions
diff --git a/ellinika/Makefile.am b/ellinika/Makefile.am
index f4dba76..4f74846 100644
--- a/ellinika/Makefile.am
+++ b/ellinika/Makefile.am
@@ -18,16 +18,23 @@
guiledir=$(GUILE_SITE)/$(PACKAGE)
guile_DATA=xlat.scm cgi.scm i18n.scm
-cgi.sed: Makefile
- echo 's,=GUILE_BINDIR=,$(GUILE_BINDIR),' > $@
- echo 's,=GUILE_SITE=,@GUILE_SITE@,' >> $@
- echo "s,\;=GUILE_COMMENT=\;,@GUILE_COMMENT@," >> $@
- echo 's,=PACKAGE=,$(PACKAGE),'>> $@
- echo 's,=PREFIX=,$(prefix),' >> $@
- echo 's,=SYSCONFDIR=,$(sysconfdir),' >> $@
- echo 's,=LOCALEDIR=,$(datadir)/locale,' >> $@
- echo 's,=HTMLDIR=,$(HTMLDIR),' >> $@
- echo 's,=AUTOGENERATED=,@AUTOGENERATED@,' >> $@
+cgi.m4: Makefile
+ echo 'divert(-1)' > $@
+ echo 'changequote([,])' >> $@
+ echo 'define([IFACE],$(APACHE_IFACE))' >> $@
+ echo 'define([GUILE_BINDIR],$(GUILE_BINDIR))' >> $@
+ echo 'define([GUILE_SITE],@GUILE_SITE@)' >> $@
+ echo 'define([PACKAGE],$(PACKAGE))'>> $@
+ echo 'define([PREFIX],$(prefix))' >> $@
+ echo 'define([SYSCONFDIR],$(sysconfdir))' >> $@
+ echo 'define([LOCALEDIR],$(datadir)/locale)' >> $@
+ echo 'define([HTMLDIR],$(HTMLDIR))' >> $@
+ echo 'divert(0)dnl' >> $@
+ echo '@AUTOGENERATED@' >> $@
-cgi.scm: $(srcdir)/cgi.scmi cgi.sed
- sed -f cgi.sed $(srcdir)/cgi.scmi > $@
+SUFFIXES = .scm4 .scm
+
+.scm4.scm:
+ m4 cgi.m4 $< > $@
+
+cgi.scm: cgi.scm4 cgi.m4 \ No newline at end of file

Return to:

Send suggestions and report system problems to the System administrator.