1
# Copyright (C) 2006, 2007, 2008, 2009 Simon Josefsson
3
# This file is part of GNU Libidn.
5
# This program is free software: you can redistribute it and/or modify
6
# it under the terms of the GNU General Public License as published by
7
# the Free Software Foundation, either version 3 of the License, or
8
# (at your option) any later version.
10
# This program is distributed in the hope that it will be useful,
11
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
# GNU General Public License for more details.
15
# You should have received a copy of the GNU General Public License
16
# along with this program. If not, see <http://www.gnu.org/licenses/>.
18
CFGFLAGS ?= --enable-java --enable-gtk-doc WARN_CFLAGS=-Werror
20
ifeq ($(.DEFAULT_GOAL),abort-due-to-no-makefile)
21
.DEFAULT_GOAL := bootstrap
25
printf "gdoc_MANS =\ngdoc_TEXINFOS =\n" > doc/Makefile.gdoc
27
autoreconf: doc/Makefile.gdoc
28
for f in po/*.po.in; do \
29
cp $$f `echo $$f | sed 's/.in//'`; \
31
mv build-aux/config.rpath build-aux/config.rpath-
32
test -f ./configure || autoreconf --install
33
mv build-aux/config.rpath- build-aux/config.rpath
36
for f in `ls po/*.po | grep -v quot.po`; do \
40
git-commit -m "Sync with TP." po/LINGUAS po/*.po.in
43
./configure $(CFGFLAGS)
46
rm -fv `find $(htmldir)/coverage -type f | grep -v CVS`
47
cp -rv $(COVERAGE_OUT)/* $(htmldir)/coverage/
51
cvs commit -m "Update." coverage
53
W32ROOT ?= $(HOME)/gnutls4win/inst
56
./configure --enable-gtk-doc --host=i586-mingw32msvc --build=`build-aux/config.guess` --prefix=$(W32ROOT)
60
cat .clcopying >> ChangeLog
62
tag = $(PACKAGE)-`echo $(VERSION) | sed 's/\./-/g'`
63
htmldir = ../www-$(PACKAGE)
65
release: prepare upload web upload-web
68
! git-tag -l $(tag) | grep $(PACKAGE) > /dev/null
70
$(MAKE) ChangeLog distcheck
71
git commit -m Generated. ChangeLog
72
git-tag -u b565716f! -m $(VERSION) $(tag)
77
build-aux/gnupload --to ftp.gnu.org:$(PACKAGE) --to alpha.gnu.org:$(PACKAGE) $(distdir).tar.gz
78
cp $(distdir).tar.gz $(distdir).tar.gz.sig ../releases/$(PACKAGE)/
81
cd doc && env MAKEINFO="makeinfo -I ../examples" \
82
TEXI2DVI="texi2dvi -I ../examples" \
83
../build-aux/gendocs.sh --html "--css-include=texinfo.css" \
84
-o ../$(htmldir)/manual/ $(PACKAGE) "$(PACKAGE_NAME)"
85
cd contrib/doxygen && doxygen && cd ../.. && cp -v contrib/doxygen/html/* $(htmldir)/doxygen/ && cd contrib/doxygen/latex && make refman.pdf && cd ../../../ && cp contrib/doxygen/latex/refman.pdf $(htmldir)/doxygen/$(PACKAGE).pdf
86
cp -v doc/reference/html/*.html doc/reference/html/*.png doc/reference/html/*.devhelp doc/reference/html/*.css $(htmldir)/reference/
87
cp -rv doc/java/* $(htmldir)/javadoc/
88
cp -v doc/cyclo/cyclo-$(PACKAGE).html $(htmldir)/cyclo/
92
cvs commit -m "Update." manual/ javadoc/ reference/ doxygen/