aboutsummaryrefslogtreecommitdiff
path: root/cgi-bin
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2004-10-12 10:27:53 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2004-10-12 10:27:53 +0000
commit358b38ba309298fd8ab5150de25da3a028e0311f (patch)
tree5be991afe11d308c4a28d18c6bbe5466f0d7369f /cgi-bin
parent5f9e26c4e74433d3f2b66bf820b73c4d35ee49a3 (diff)
downloadellinika-358b38ba309298fd8ab5150de25da3a028e0311f.tar.gz
ellinika-358b38ba309298fd8ab5150de25da3a028e0311f.tar.bz2
Create a separate sed program file.
git-svn-id: file:///home/puszcza/svnroot/ellinika/trunk@211 941c8c0f-9102-463b-b60b-cd22ce0e6858
Diffstat (limited to 'cgi-bin')
-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.