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