Generated.
[shishi.git] / Makefile.am
blobed101ac435df903c7ec571eb2b3d5b7077186f64
1 ## Process this file with automake to produce Makefile.in
2 # Copyright (C) 2002, 2003 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
18 # the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 # Boston, MA 02111-1307, USA.
21 DISTCHECK_CONFIGURE_FLAGS = \
22         --disable-gtk-doc --without-system-asn1 --without-libgcrypt
24 MOST_SUBDIRS = m4 po gl lib src tests doc
26 DIST_SUBDIRS = crypto asn1 $(MOST_SUBDIRS) examples extra
28 SUBDIRS = @CRYPTO@ @ASN1@ $(MOST_SUBDIRS)
30 ACLOCAL_AMFLAGS = -I m4 -I gl/m4
32 pkgconfigdir = $(libdir)/pkgconfig
33 pkgconfig_DATA = shishi.pc
35 sysconf_DATA = shishi.conf
36 pkgdata_DATA = shishi.skel
38 EXTRA_DIST = ANNOUNCE config.rpath mkinstalldirs \
39         shishi.conf.in shishi.skel.in shishi.pc.in
41 # Maintainer targets
43 indent:
44         (cd lib && make indent)
45         (cd src && make indent)
46         (cd tests && make indent)
48 .PHONY: extra
49 extra:
50         (cd extra && make)
52 .PHONY: examples
53 examples:
54         (cd examples && make)
56 ChangeLog:
57         test ! -f .cvsusers || \
58         (cvs2cl --fsf --FSF --usermap .cvsusers \
59         -I "ChangeLog|.cvs|autogen.sh|doc/specification|libstringprep" && \
60         cat .cvscopying >> ChangeLog)
62 tag = $(PACKAGE)-`echo $(VERSION) | sed 's/\./-/g'`
63 htmldir = ../www-$(PACKAGE)
65 release:
66         (cd doc/man; make update-api)
67         cvs upd -p -r HEAD NEWS > /dev/null
68         if cvs upd -p -r $(tag) NEWS > /dev/null; then false else true; fi
69         rm -f ChangeLog && cvs upd ChangeLog
70         cvs commit
71         rm -f ChangeLog
72         $(MAKE) ChangeLog distcheck
73         cvs commit -m "" ChangeLog
74         rm -f $(distdir).tar.gz.asc
75         gpg -a --sign --detach $(distdir).tar.gz
76         gpg --verify $(distdir).tar.gz.asc
77         cvs rtag $(tag) $(PACKAGE)
78         test -d $(htmldir) && cp -v doc/$(PACKAGE).{ps,pdf,html} $(htmldir)/
79         test -d $(htmldir)/reference && \
80                 cp -v doc/reference/html/*.html $(htmldir)/reference/
81         test -d $(htmldir) && cd $(htmldir) && cvs commit -m "Update." \
82                 $(PACKAGE).{ps,pdf,html} reference/*.html