aboutsummaryrefslogtreecommitdiff
path: root/Makefile.am
blob: 9f08e82aaf60897e7d645d1f2018dca5e6fbe054 (plain)
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
46
47
48
49
50
# This file is part of Ellinika project.
# Copyright (C) 2004, 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/>.

AUTOMAKE_OPTIONS = gnits 1.8 
ACLOCAL_AMFLAGS = -I m4

SUBDIRS=cgi-bin elisp data ellinika scm xml po

htmldir = $(HTMLDIR)

html_DATA = style.css .htaccess index.scml  disp.html disp.css
EXTRA_DIST=.htaccess.in index.scml disp.html disp.css maint.html

install-html:
	top_srcdir=`cd $(top_srcdir);pwd`; \
	for dir in pl ru uk; do \
		here=`pwd`; \
		if test -d $(top_srcdir)/html/$$dir; then  \
		  cd $(top_srcdir)/html/$$dir; \
		  if test -d $(DESTDIR)$(HTMLDIR)/$$dir; then \
			:; \
		  else \
			$(mkdir_p) $(DESTDIR)$(HTMLDIR)/$$dir; \
		  fi; \
		  for file in *.html; do \
			${INSTALL} -m 644 $$file $(DESTDIR)$(HTMLDIR)/$$dir/$$file; \
	       	  done; \
		  if test -r $$top_srcdir/xml/$$dir/symlinks; then \
			grep -v '^[ \t]*[;#]' $$top_srcdir/xml/$$dir/symlinks | \
			sed 's,^/,_,;s,\\.\\./,__/,g' | \
			while read S T; do ln -sf $$S $$T; done; \
		  fi; \
		  cd $$here; \
		fi; \
	done

install-data-local: install-html

Return to:

Send suggestions and report system problems to the System administrator.