summaryrefslogtreecommitdiffabout
path: root/src/cgi-bin/Makefile.am
Side-by-side diff
Diffstat (limited to 'src/cgi-bin/Makefile.am') (more/less context) (ignore whitespace changes)
-rw-r--r--src/cgi-bin/Makefile.am48
1 files changed, 25 insertions, 23 deletions
diff --git a/src/cgi-bin/Makefile.am b/src/cgi-bin/Makefile.am
index 6b32b42..f085e57 100644
--- a/src/cgi-bin/Makefile.am
+++ b/src/cgi-bin/Makefile.am
@@ -1,5 +1,5 @@
# This file is part of Ellinika project.
-# Copyright (C) 2004, 2005, 2007, 2008 Sergey Poznyakoff
+# Copyright (C) 2004, 2005, 2007, 2008, 2015 Sergey Poznyakoff
#
# Ellinika is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -20,34 +20,36 @@ EXTRA_DIST=dict.scm4 nea.scm4 conj.scm4
CLEANFILES=dict.m4 dict.scm nea.scm dict.cgi nea.cgi conj.cgi
dict.m4: Makefile
- echo 'divert(-1)' > $@
- echo 'changequote([,])' >> $@
- echo 'changecom([;],[' >> $@
- echo '])' >> $@
- echo 'undefine([format])' >> $@
- echo 'define([IFACE], [$(APACHE_IFACE)])' >> $@
- echo 'define([SCRIPT_SUFFIX], [@SCRIPT_SUFFIX@])'>>$@
- 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 'ifelse(IFACE,[CGI],[#! $(GUILE_BINDIR)/guile -s]' >> $@
- echo ')dnl' >> $@
- echo '@AUTOGENERATED@' >> $@
- echo 'ifelse(IFACE,[CGI],!#' >> $@
- echo ')dnl' >> $@
+ $(AM_V_GEN){ \
+ echo 'divert(-1)'; \
+ echo 'changequote([,])'; \
+ echo 'changecom([;],['; \
+ echo '])'; \
+ echo 'undefine([format])'; \
+ echo 'define([IFACE], [$(APACHE_IFACE)])'; \
+ echo 'define([SCRIPT_SUFFIX], [@SCRIPT_SUFFIX@])'; \
+ 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 'ifelse(IFACE,[CGI],[#! $(GUILE_BINDIR)/guile -s]';\
+ echo ')dnl'; \
+ echo '@AUTOGENERATED@'; \
+ echo 'ifelse(IFACE,[CGI],!#'; \
+ echo ')dnl'; \
+ } > dict.m4
SUFFIXES = .scm4 .scm .cgi
.scm4.scm:
- m4 dict.m4 $< > $@
+ $(AM_V_GEN)m4 dict.m4 $< > $@
.scm.cgi:
- cp $< $@
+ $(AM_V_GEN)cp $< $@
dict.scm: dict.scm4 dict.m4
nea.scm: nea.scm4 dict.m4

Return to:

Send suggestions and report system problems to the System administrator.