1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# This file is part of Ellinika project.
# Copyright (C) 2004, 2006, 2007 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
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# Ellinika is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
EXTRA_DIST = COPYING.FDL lingua.conf.in
SUBDIRS = . pl ru uk
DISTCLEANFILES=lingua.conf
CLEANFILES=conf.sed
noinst_DATA= lingua.conf
conf.sed: Makefile
echo 's,=TMPDIR=,$(top_builddir)/../tmp,g' > conf.sed
echo 's,=OUTDIR=,$(top_builddir)/../html,g' >> conf.sed
echo 's,=TARGET_DIR=,$(TARGET_DIR),g' >> conf.sed
echo 's,=SCRIPT_SUFFIX=,$(SCRIPT_SUFFIX),g' >> conf.sed
echo 's,=SCRIPT_DIR=,$(SCRIPT_DIR),g' >> conf.sed
echo 's,=BASE_HREF=,$(BASE_HREF),g' >> conf.sed
echo 's,=PACKAGE_BUGREPORT=,$(PACKAGE_BUGREPORT),g' >> conf.sed
echo 's,=PROD_URL=,$(PROD_URL),g' >> conf.sed
echo 's,=EXP_URL=,$(EXP_URL),g' >> conf.sed
if test "$(STATE)" = "EXP"; then \
echo 's,=IFEXP=,,' >> conf.sed; \
echo 's,=END IFEXP=,,' >> conf.sed; \
echo '/=IFPROD=/,/=END IFPROD=/d' >> conf.sed; \
else \
echo 's,=IFPROD=,,' >> conf.sed; \
echo 's,=END IFPROD=,,' >> conf.sed; \
echo '/=IFEXP=/,/=END IFEXP=/d' >> conf.sed; \
fi
lingua.conf: $(srcdir)/lingua.conf.in conf.sed
sed -f conf.sed $(srcdir)/lingua.conf.in > $@
|