1 ## Process this file with automake to produce Makefile.in
2 # Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007 Simon Josefsson.
4 # This file is part of Shishi.
6 # Shishi is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2, or (at your option)
11 # Shishi is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with Shishi; see the file COPYING. If not, write to the Free
18 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
21 DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc \
22 --without-system-asn1 --without-libgcrypt
30 SUBDIRS += lib db src tests doc extra
32 DIST_SUBDIRS = po gl asn1 lib db src tests doc extra examples
34 ACLOCAL_AMFLAGS = -I m4 -I gl/m4
36 pkgconfigdir = $(libdir)/pkgconfig
37 pkgconfig_DATA = shishi.pc
40 conf_DATA = shishi.conf shisa.conf
43 skel_DATA = shishi.skel
45 distuninstallcheck_listfiles = find . -type f -print | grep -v -e shishi.keys -e 0.key
48 @echo Initializing database and creating host key...
49 if test ! -d $(DESTDIR)$(DBDIR); then \
50 if mkdir -m 0700 -p $(DESTDIR)$(DBDIR); then \
51 if test ! -f $(DESTDIR)$(KEYDIR)/shishi.keys; then \
52 if $(DESTDIR)$(bindir)/shisa$(EXEEXT) -a > \
53 $(DESTDIR)$(KEYDIR)/shishi.keys; then \
54 echo Successfully created database and host key.; \
56 echo Unable to create database, see $(DESTDIR)$(KEYDIR)/shishi.keys.; \
59 echo Key file $(DESTDIR)$(KEYDIR)/shishi.keys already exist.; \
62 echo Could not create directory root$(DESTDIR)$(DBDIR).; \
65 echo Database root $(DESTDIR)$(DBDIR) already exist.; \
71 -cg-add `ls po/*.po | grep -v quot.po`
72 cg-commit -m "Sync with TP." po/LINGUAS `ls po/*.po | grep -v quot.po`
79 git log --pretty --numstat --summary | git2cl > ChangeLog
80 cat .cvscopying >> ChangeLog
82 tag = $(PACKAGE)-`echo $(VERSION) | sed 's/\./-/g'`
83 htmldir = ../www-$(PACKAGE)
86 ! git-tag -l $(tag) > /dev/null
88 $(MAKE) ChangeLog distcheck
89 git commit -m Generated. ChangeLog
90 git-tag -u b565716f! -m $(VERSION) $(tag)
91 cd doc && ../build-aux/gendocs.sh --html "--css-include=texinfo.css" \
92 -o ../$(htmldir)/manual/ $(PACKAGE) "Shishi"
93 build-aux/gnupload --to alpha.gnu.org:shishi $(distdir).tar.gz
94 cp -v $(distdir).tar.gz{,.sig} $(htmldir)/releases/
95 cp -v doc/reference/html/*.{html,png,devhelp,css} $(htmldir)/reference/
96 cd $(htmldir) && cvs add -kb releases/$(distdir).tar.gz{,.sig} && \
97 cvs commit -m "Update." manual/ reference/ releases/