Add.
[shishi.git] / Makefile.am
blob3c8e43e5a6bb12bf67d165e291389a8d345d51cc
1 ## Process this file with automake to produce Makefile.in
2 # Copyright (C) 2002, 2003, 2004, 2005, 2006 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         cvs add `ls po/*.po | grep -v quot.po` || true && \
72         cvs commit -m "Sync with TP." po/LINGUAS `ls po/*.po | grep -v quot.po`
74 .PHONY: examples
75 examples:
76         (cd examples && make)
78 ChangeLog:
79         cvs2cl --fsf --FSF --usermap .cvsusers -I ChangeLog -I .cvs \
80                 -I autogen.sh -I doc/specification
81         cat .cvscopying >> ChangeLog
83 tag = $(PACKAGE)-`echo $(VERSION) | sed 's/\./-/g'`
84 htmldir = ../www-$(PACKAGE)
86 release:
87         cvs upd -p -r HEAD NEWS > /dev/null
88         if cvs upd -p -r $(tag) NEWS > /dev/null; then false else true; fi
89         rm -f ChangeLog && cvs upd ChangeLog
90         cvs commit
91         rm -f ChangeLog
92         $(MAKE) ChangeLog distcheck
93         cvs commit -m "" ChangeLog
94         cvs rtag $(tag) $(PACKAGE)
95         cd doc && ../gendocs.sh --html "--css-include=texinfo.css" \
96                 -o ../$(htmldir)/manual/ $(PACKAGE) "Shishi"
97         ./gnupload --to alpha.gnu.org:shishi $(distdir).tar.gz
98         cp -v $(distdir).tar.gz{,.sig} $(htmldir)/releases/
99         cp -v doc/reference/html/*.{html,png,devhelp,css} $(htmldir)/reference/
100         cd $(htmldir) && cvs add -kb releases/$(distdir).tar.gz{,.sig} && \
101                 cvs commit -m "Update." manual/ reference/ releases/