aboutsummaryrefslogtreecommitdiff
path: root/Makefile.am
blob: 7fac923d8a25e187f4968a4333573bef636fa507 (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
51
52
53
54
55
56
57
58
59
# This file is part of Ellinika project.
# Copyright (C) 2004, 2007, 2008, 2010, 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
# 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 -I am -I gint

SUBDIRS=gint src elisp data scm xml html-files po

htmldir = $(HTMLDIR)

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

install-html:
	$(AM_V_GEN)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' | \
			(cd $(DESTDIR)$(HTMLDIR)/$$dir; \
                         while read S T; do ln -sf $$S $$T; done); \
		  fi; \
		  cd $$here; \
		fi; \
	done

install-data-local: install-html

.PHONY: ChangeLog
ChangeLog:
	$(AM_V_GEN)if test -d .git; then                                  \
		git log --pretty='format:%ct  %an  <%ae>%n%n%s%n%n%b%n' | \
		awk -f $(top_srcdir)/git2chg.awk                          \
                    -v append=$(top_srcdir)/ChangeLog.svn > ChangeLog;    \
        fi

Return to:

Send suggestions and report system problems to the System administrator.