Use modern API.
[libidn.git] / reference / Makefile.am
blob2c0ecd3f59664489e318563314b0cf4776e381d5
1 ## Process this file with automake to produce Makefile.in
2 # Copyright (C) 2003 Simon Josefsson.
4 # This file is part of GNU Libidn.
6 # GNU Libidn is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU Lesser General Public License as
8 # published by the Free Software Foundation; either version 2.1 of
9 # the License, or (at your option) any later version.
11 # GNU Libidn 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 Lesser General Public License for more details.
16 # You should have received a copy of the GNU Lesser General Public
17 # License along with GNU Libidn; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
20 EXTRA_DIST = dummy.c libidn-docs.tmpl $(HTML_OBJECTS) $(IMAGES)
22 HTML_OBJECTS = index.html c4.html \
23         libidn-idna.html libidn-punycode.html libidn-stringprep.html
24 IMAGES = home.png left.png right.png up.png
26 MODULE = libidn
27 HIGNORE = config.h gunibreak.h gunicomp.h gunidecomp.h idn-int.h \
28         netdb.h getopt.h internal.h stringprep_*.h idn_cmd.h
30 scan.stamp: $(top_srcdir)/lib/*.c $(top_srcdir)/lib/*.h
31         $(GTKDOC_SCAN) --module=$(MODULE) --source-dir=$(top_srcdir) \
32                 --ignore-headers="$(HIGNORE)"
33         touch scan.stamp
35 tmpl.stamp: scan.stamp
36         $(GTKDOC_MKTMPL) --module=$(MODULE) --output-dir=.
38 sgml.stamp: tmpl.stamp
39         $(GTKDOC_MKDB) --module=$(MODULE) --source-dir=$(top_srcdir) \
40                 --tmpl-dir=. --output-dir=. --main-sgml-file=$(srcdir)/$(MODULE)-docs.tmpl
42 index.html: sgml.stamp
43         cp $(srcdir)/$(MODULE)-docs.tmpl $(MODULE)-docs.sgml
44         $(GTKDOC_MKHTML) $(MODULE) $(MODULE)-docs.sgml
45         rm -f $(MODULE)-docs.sgml ../html.stamp
46         $(GTKDOC_FIXXREF) --module-dir=. --html-dir=$(HTML_DIR)
48 all: index.html
50 clean-local:
51         rm -f *.bak scan.stamp tmpl.stamp sgml.stamp *.txt *.sgml \
52                 $(MODULE)-doc.bottom $(MODULE)-doc.top \
53                 $(HTML_OBJECTS) $(IMAGES)