aboutsummaryrefslogtreecommitdiff
path: root/cgi-bin/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'cgi-bin/Makefile.am')
-rw-r--r--cgi-bin/Makefile.am18
1 files changed, 15 insertions, 3 deletions
diff --git a/cgi-bin/Makefile.am b/cgi-bin/Makefile.am
index 5d327d5..1a65fb7 100644
--- a/cgi-bin/Makefile.am
+++ b/cgi-bin/Makefile.am
@@ -1,7 +1,19 @@
+pkgmoddir=@GUILE_SITE@
cgidir=@CGIDIR@
cgi_SCRIPTS=dict.cgi
+EXTRA_DIST=dict.cgi.in
+CLEANFILES=dict.sed dict.cgi
-dict.cgi: dict.cgi.in
- sed 's,=PACKAGE=,$(PACKAGE),;s,=PREFIX=,$(prefix),;s,=SYSCONFDIR=,$(sysconfdir),;s,=LOCALEDIR=,$(datadir)/locale,;s,=HTMLDIR=,$(HTMLDIR),' $? > $@
+dict.sed: Makefile
+ echo 's,=GUILE_BINDIR=,$(GUILE_BINDIR),' > $@
+ echo 's,=PACKAGE=,$(PACKAGE),'>> $@
+ echo 's,=PREFIX=,$(prefix),' >> $@
+ echo 's,=SYSCONFDIR=,$(sysconfdir),' >> $@
+ echo 's,=LOCALEDIR=,$(datadir)/locale,' >> $@
+ echo 's,=HTMLDIR=,$(HTMLDIR),' >> $@
+ s=`echo $(pkgmoddir) | sed 's,\(.*\)/.*,\1,'` ; \
+ echo "s,\;=UPDPATH=,@UPDPATH@," >> $@
+
+dict.cgi: $(srcdir)/dict.cgi.in dict.sed
+ sed -f dict.sed $(srcdir)/dict.cgi.in > $@
-EXTRA_DIST=dict.cgi.in

Return to:

Send suggestions and report system problems to the System administrator.