iUpdate.
[shishi.git] / Makefile.am
blob356fd62e97b7b833a5bef29d8ec2c0c550156119
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)
9 # any later version.
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,
19 # MA 02110-1301, USA.
21 DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc \
22         --without-system-asn1 --without-libgcrypt
24 SUBDIRS = po gl
26 if ASN1
27 SUBDIRS += asn1
28 endif
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
39 confdir = $(CONFDIR)
40 conf_DATA = shishi.conf shisa.conf
42 skeldir = $(SKELDIR)
43 skel_DATA = shishi.skel
45 distuninstallcheck_listfiles = find . -type f -print | grep -v -e shishi.keys -e 0.key
47 install-data-hook:
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.; \
55               else \
56                 echo Unable to create database, see $(DESTDIR)$(KEYDIR)/shishi.keys.; \
57               fi; \
58             else \
59               echo Key file $(DESTDIR)$(KEYDIR)/shishi.keys already exist.; \
60             fi; \
61           else \
62             echo Could not create directory root$(DESTDIR)$(DBDIR).; \
63           fi; \
64         else \
65           echo Database root $(DESTDIR)$(DBDIR) already exist.; \
66         fi
68 # Maintainer targets
70 update-po: refresh-po
71         cg-commit -m "Sync with TP." po/LINGUAS `ls po/*.po | grep -v quot.po`
73 .PHONY: examples
74 examples:
75         (cd examples && make)
77 ChangeLog:
78         git log --pretty --numstat --summary | git2cl > ChangeLog
79         cat .cvscopying >> ChangeLog
81 tag = $(PACKAGE)-`echo $(VERSION) | sed 's/\./-/g'`
82 htmldir = ../www-$(PACKAGE)
84 release:
85         ! git-tag -l $(tag) > /dev/null
86         rm -f ChangeLog
87         $(MAKE) ChangeLog distcheck
88         git commit -m Generated. ChangeLog
89         git-tag -u b565716f! -m $(VERSION) $(tag)
90         cd doc && ../build-aux/gendocs.sh --html "--css-include=texinfo.css" \
91                 -o ../$(htmldir)/manual/ $(PACKAGE) "Shishi"
92         build-aux/gnupload --to alpha.gnu.org:shishi $(distdir).tar.gz
93         cp -v $(distdir).tar.gz{,.sig} $(htmldir)/releases/
94         cp -v doc/reference/html/*.{html,png,devhelp,css} $(htmldir)/reference/
95         cd $(htmldir) && cvs add -kb releases/$(distdir).tar.gz{,.sig} && \
96                 cvs commit -m "Update." manual/ reference/ releases/