Imported Upstream version 0.18.1.1
[platform/upstream/gettext.git] / gettext-runtime / libasprintf / Makefile.am
1 ## Makefile for the gettext-runtime/libasprintf subdirectory of GNU gettext
2 ## Copyright (C) 2002-2007, 2009 Free Software Foundation, Inc.
3 ##
4 ## This program is free software; you can redistribute it and/or modify it
5 ## under the terms of the GNU Library General Public License as published
6 ## by the Free Software Foundation; either version 2, or (at your option)
7 ## any later version.
8 ##
9 ## This program is distributed in the hope that it will be useful,
10 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
11 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12 ## Library General Public License for more details.
13 ##
14 ## You should have received a copy of the GNU Library General Public
15 ## License along with this program; if not, write to the Free Software
16 ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
17 ## USA.
18
19 ## Process this file with automake to produce Makefile.in.
20
21 AUTOMAKE_OPTIONS = 1.5 gnu no-dependencies
22 ACLOCAL = ../../build-aux/fixaclocal @ACLOCAL@
23 ACLOCAL_AMFLAGS = -I ../../m4 -I ../m4 -I gnulib-m4
24 EXTRA_DIST =
25 BUILT_SOURCES =
26 MOSTLYCLEANFILES =
27
28 RM = rm -f
29
30 DEFS = -DIN_LIBASPRINTF @DEFS@
31
32
33 # Library include file.
34
35 include_HEADERS = autosprintf.h
36
37 all-local $(libasprintf_la_OBJECTS): autosprintf.h
38 autosprintf.h: autosprintf.h.in
39         cp $(srcdir)/autosprintf.h.in autosprintf.h
40 MOSTLYCLEANFILES += autosprintf.h
41 EXTRA_DIST += autosprintf.h.in
42
43 dist-hook:
44         rm -f $(distdir)/autosprintf.h
45
46
47 # Library code.
48
49 lib_LTLIBRARIES = libasprintf.la
50
51 noinst_LTLIBRARIES =
52
53 libasprintf_la_SOURCES = \
54   lib-asprintf.h lib-asprintf.c \
55   autosprintf.h autosprintf.cc
56
57 # Sources used only on platforms lacking vasprintf().
58 lib_asprintf_EXTRASOURCES = \
59   xsize.h \
60   printf-args.h printf-args.c \
61   printf-parse.h printf-parse.c \
62   vasnprintf.h vasnprintf.c asnprintf.c \
63   vasprintf.h vasprintf.c asprintf.c
64 lib-asprintf.lo: $(lib_asprintf_EXTRASOURCES)
65 EXTRA_DIST += $(lib_asprintf_EXTRASOURCES)
66
67
68 # How to build libasprintf.
69 # With libtool 1.5.14, on some platforms, like BeOS, "libtool --tag=CXX" fails
70 # to create a shared library, however "libtool --tag=CC" succeeds.
71 libasprintf_la_LDFLAGS = @LTNOUNDEF@
72 libasprintf.la: $(libasprintf_la_OBJECTS) $(libasprintf_la_DEPENDENCIES)
73         $(AM_V_GEN)$(CXXLINK) -rpath $(libdir) $(libasprintf_la_LDFLAGS) $(libasprintf_la_OBJECTS) $(libasprintf_la_LIBADD) $(LIBS) || \
74         $(LINK) -rpath $(libdir) $(libasprintf_la_LDFLAGS) $(libasprintf_la_OBJECTS) $(libasprintf_la_LIBADD) $(LIBS)
75
76
77 # A small set of gnulib modules is needed here as well.
78 include Makefile.gnulib
79
80 # Allow users to use "gnulib-tool --update".
81 EXTRA_DIST += gnulib-m4/gnulib-cache.m4
82
83
84 # Clean up after Solaris cc.
85 clean-local:
86         rm -rf SunWS_cache
87
88
89 # Documentation.
90
91 MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
92 MAKEINFOFLAGS = --no-split
93
94 info_TEXINFOS = autosprintf.texi
95
96 # We distribute only the HTML documentation.
97 # The user can generate the others, via
98 #   make autosprintf.ps
99 #   make autosprintf.pdf
100
101 all-local: html-local
102 install-data-local: install-html
103 installdirs-local: installdirs-html
104 uninstall-local: uninstall-html
105
106 # CLEANFILES: autosprintf.{dvi,ps,pdf,html} are already known to automake.
107
108
109 # Documentation in DVI format.
110
111 # The install-dvi target is already defined by automake.
112
113 installdirs-dvi:
114         $(mkdir_p) $(DESTDIR)$(dvidir)
115
116 uninstall-dvi:
117         $(RM) $(DESTDIR)$(dvidir)/autosprintf.dvi
118
119 # Temporary index files. automake removes only the predefined ones by itself.
120 MOSTLYCLEANFILES +=
121
122
123 # Documentation in Postscript format.
124
125 # Override of automake's definition:
126 #DVIPS = @DVIPS@
127 DVIPS = @DVIPS@ -D600
128
129 autosprintf.ps: autosprintf.dvi
130         $(DVIPS) -o $@ `if test -f autosprintf.dvi; then echo autosprintf.dvi; else echo $(srcdir)/autosprintf.dvi; fi`
131
132 # The install-ps target is already defined by automake.
133
134 installdirs-ps:
135         $(mkdir_p) $(DESTDIR)$(psdir)
136
137 uninstall-ps:
138         $(RM) $(DESTDIR)$(psdir)/autosprintf.ps
139
140
141 # Documentation in Portable Document Format.
142
143 # The install-pdf target is already defined by automake.
144
145 installdirs-pdf:
146         $(mkdir_p) $(DESTDIR)$(pdfdir)
147
148 uninstall-pdf:
149         $(RM) $(DESTDIR)$(pdfdir)/autosprintf.pdf
150
151
152 # Documentation in HTML format.
153
154 TEXI2HTML = @PERL@ $(srcdir)/texi2html
155
156 HTMLS = autosprintf_all.html
157
158 html-local: $(HTMLS)
159
160 # Override of automake's definition.
161 # We want to use texi2html, not makeinfo --html.
162 autosprintf_all.html: autosprintf.texi
163         $(TEXI2HTML) -number -monolithic `if test -f autosprintf.texi; then echo autosprintf.texi; else echo $(srcdir)/autosprintf.texi; fi`
164         mv autosprintf.html autosprintf_all.html
165
166 # The install-html target is already defined by automake.
167
168 installdirs-html:
169         $(mkdir_p) $(DESTDIR)$(htmldir)
170
171 uninstall-html:
172         $(RM) $(DESTDIR)$(htmldir)/autosprintf.html
173
174 EXTRA_DIST += texi2html autosprintf_all.html
175
176
177 # Woe32 support.
178
179 EXTRA_DIST += README.woe32