~ubuntu-branches/ubuntu/trusty/libidn/trusty

« back to all changes in this revision

Viewing changes to cfg.mk

  • Committer: Bazaar Package Importer
  • Author(s): Simon Josefsson, Simon Josefsson
  • Date: 2009-04-17 00:22:30 UTC
  • mfrom: (1.2.11 upstream) (3.1.3 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090417002230-3on40qu1llxq7ybb
Tags: 1.14-3
[ Simon Josefsson ]
* Don't use autotools-dev, the config.* files in libidn
  are newer than what's in autotools-dev.
* Use more idiomatatic code to filter out platforms without gcj.
  Thanks to Adeodato Simó <dato@net.com.org.es>.
* Upload to unstable after testing in experimental.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Copyright (C) 2006, 2007, 2008, 2009 Simon Josefsson
 
2
#
 
3
# This file is part of GNU Libidn.
 
4
#
 
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.
 
9
#
 
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.
 
14
#
 
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/>.
 
17
 
 
18
CFGFLAGS ?= --enable-java --enable-gtk-doc WARN_CFLAGS=-Werror
 
19
 
 
20
ifeq ($(.DEFAULT_GOAL),abort-due-to-no-makefile)
 
21
.DEFAULT_GOAL := bootstrap
 
22
endif
 
23
 
 
24
doc/Makefile.gdoc:
 
25
        printf "gdoc_MANS =\ngdoc_TEXINFOS =\n" > doc/Makefile.gdoc
 
26
 
 
27
autoreconf: doc/Makefile.gdoc
 
28
        for f in po/*.po.in; do \
 
29
                cp $$f `echo $$f | sed 's/.in//'`; \
 
30
        done
 
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
 
34
 
 
35
update-po: refresh-po
 
36
        for f in `ls po/*.po | grep -v quot.po`; do \
 
37
                cp $$f $$f.in; \
 
38
        done
 
39
        git-add po/*.po.in
 
40
        git-commit -m "Sync with TP." po/LINGUAS po/*.po.in
 
41
 
 
42
bootstrap: autoreconf
 
43
        ./configure $(CFGFLAGS)
 
44
 
 
45
web-coverage:
 
46
        rm -fv `find $(htmldir)/coverage -type f | grep -v CVS`
 
47
        cp -rv $(COVERAGE_OUT)/* $(htmldir)/coverage/
 
48
 
 
49
upload-web-coverage:
 
50
        cd $(htmldir) && \
 
51
                cvs commit -m "Update." coverage
 
52
 
 
53
W32ROOT ?= $(HOME)/gnutls4win/inst
 
54
 
 
55
mingw32: autoreconf 
 
56
        ./configure --enable-gtk-doc --host=i586-mingw32msvc --build=`build-aux/config.guess` --prefix=$(W32ROOT)
 
57
 
 
58
ChangeLog:
 
59
        git2cl > ChangeLog
 
60
        cat .clcopying >> ChangeLog
 
61
 
 
62
tag = $(PACKAGE)-`echo $(VERSION) | sed 's/\./-/g'`
 
63
htmldir = ../www-$(PACKAGE)
 
64
 
 
65
release: prepare upload web upload-web
 
66
 
 
67
prepare:
 
68
        ! git-tag -l $(tag) | grep $(PACKAGE) > /dev/null
 
69
        rm -f ChangeLog
 
70
        $(MAKE) ChangeLog distcheck
 
71
        git commit -m Generated. ChangeLog
 
72
        git-tag -u b565716f! -m $(VERSION) $(tag)
 
73
 
 
74
upload:
 
75
        git-push
 
76
        git-push --tags
 
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)/
 
79
 
 
80
web:
 
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/
 
89
 
 
90
upload-web:
 
91
        cd $(htmldir) && \
 
92
                cvs commit -m "Update." manual/ javadoc/ reference/ doxygen/