*** empty log message ***
[shishi.git] / Makefile.am
blob6219a269ae600f68dc5ecdd103af9d7866ab31d6
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 = --disable-gtk-doc
23 MOST_SUBDIRS = m4 po gl lib src tests doc
25 DIST_SUBDIRS = crypto asn1 $(MOST_SUBDIRS) examples extra
27 SUBDIRS = @CRYPTO@ @ASN1@ $(MOST_SUBDIRS)
29 ACLOCAL_AMFLAGS = -I m4 -I gl/m4
31 pkgconfigdir = $(libdir)/pkgconfig
32 pkgconfig_DATA = shishi.pc
34 sysconf_DATA = shishi.conf
35 pkgdata_DATA = shishi.skel
37 EXTRA_DIST = ANNOUNCE config.rpath mkinstalldirs \
38         shishi.conf.in shishi.skel.in shishi.pc.in
40 # Maintainer targets
42 indent:
43         (cd lib && make indent)
44         (cd src && make indent)
45         (cd tests && make indent)
47 .PHONY: extra
48 extra:
49         (cd extra && make)
51 .PHONY: examples
52 examples:
53         (cd examples && make)
55 ChangeLog:
56         test ! -f .cvsusers || \
57         (cvs2cl --fsf --FSF --usermap .cvsusers \
58         -I "ChangeLog|.cvs|autogen.sh|doc/specification|libstringprep" && \
59         cat .cvscopying >> ChangeLog)
61 tag = $(PACKAGE)-`echo $(VERSION) | sed 's/\./-/g'`
62 htmldir = ../www-$(PACKAGE)
64 release:
65         cvs upd -p -r HEAD NEWS > /dev/null
66         if cvs upd -p -r $(tag) NEWS > /dev/null; then false else true; fi
67         rm -f ChangeLog && cvs upd ChangeLog
68         cvs commit
69         rm -f ChangeLog
70         $(MAKE) ChangeLog distcheck
71         cvs commit -m "" ChangeLog
72         rm -f $(distdir).tar.gz.asc
73         gpg -a --sign --detach $(distdir).tar.gz
74         gpg --verify $(distdir).tar.gz.asc
75         cvs rtag $(tag) $(PACKAGE)
76         test -d $(htmldir) && cp -v doc/$(PACKAGE).{ps,pdf,html} $(htmldir)/
77         test -d $(htmldir)/reference && \
78                 cp -v doc/reference/html/*.html $(htmldir)/reference/
79         test -d $(htmldir) && cd $(htmldir) && cvs commit -m "Update." \
80                 $(PACKAGE).{ps,pdf,html} reference/*.html