/[pcre]/code/trunk/Makefile.am
ViewVC logotype

Contents of /code/trunk/Makefile.am

Parent Directory Parent Directory | Revision Log Revision Log


Revision 111 - (show annotations) (download)
Thu Mar 8 16:53:09 2007 UTC (7 years, 5 months ago) by ph10
File size: 8187 byte(s)
Create the PrepareRelease script to process the documentation and create the 
.generic files for distribution, also to remove trailing spaces. Update a lot 
more of the build-time documentation. Arrange for PrepareRelease and its 
sub-scripts to be distributed.

1 ## Process this file with automake to produce Makefile.in.
2
3 dist_doc_DATA = \
4 doc/pcre.txt \
5 doc/pcregrep.txt \
6 doc/pcretest.txt \
7 AUTHORS \
8 COPYING \
9 ChangeLog \
10 LICENCE \
11 NEWS \
12 README
13
14 dist_html_DATA = \
15 doc/html/index.html \
16 doc/html/pcre.html \
17 doc/html/pcre_compile.html \
18 doc/html/pcre_compile2.html \
19 doc/html/pcre_config.html \
20 doc/html/pcre_copy_named_substring.html \
21 doc/html/pcre_copy_substring.html \
22 doc/html/pcre_dfa_exec.html \
23 doc/html/pcre_exec.html \
24 doc/html/pcre_free_substring.html \
25 doc/html/pcre_free_substring_list.html \
26 doc/html/pcre_fullinfo.html \
27 doc/html/pcre_get_named_substring.html \
28 doc/html/pcre_get_stringnumber.html \
29 doc/html/pcre_get_stringtable_entries.html \
30 doc/html/pcre_get_substring.html \
31 doc/html/pcre_get_substring_list.html \
32 doc/html/pcre_info.html \
33 doc/html/pcre_maketables.html \
34 doc/html/pcre_refcount.html \
35 doc/html/pcre_study.html \
36 doc/html/pcre_version.html \
37 doc/html/pcreapi.html \
38 doc/html/pcrebuild.html \
39 doc/html/pcrecallout.html \
40 doc/html/pcrecompat.html \
41 doc/html/pcregrep.html \
42 doc/html/pcrematching.html \
43 doc/html/pcrepartial.html \
44 doc/html/pcrepattern.html \
45 doc/html/pcreperform.html \
46 doc/html/pcreposix.html \
47 doc/html/pcreprecompile.html \
48 doc/html/pcresample.html \
49 doc/html/pcrestack.html \
50 doc/html/pcretest.html
51
52 pcrecpp_html = doc/html/pcrecpp.html
53 dist_noinst_DATA = $(pcrecpp_html)
54
55 if WITH_PCRE_CPP
56 html_DATA = $(pcrecpp_html)
57 endif
58
59 # The Libtool libraries to install. We'll add to this later.
60 lib_LTLIBRARIES =
61
62 # Unit tests you want to run when people type 'make check'.
63 # TESTS is for binary unit tests, check_SCRIPTS for script-based tests
64 TESTS =
65 check_SCRIPTS =
66 noinst_SCRIPTS =
67
68 # Some of the binaries we make are to be installed, and others are
69 # (non-user-visible) helper programs needed to build libpcre.
70 bin_PROGRAMS =
71 noinst_PROGRAMS =
72
73 # Additional files to delete on 'make clean' and 'make maintainer-clean'.
74 CLEANFILES =
75 MAINTAINERCLEANFILES =
76
77 # Additional files to bundle with the distribution.
78 EXTRA_DIST =
79
80 # These files contain maintenance information
81 EXTRA_DIST += \
82 doc/perltest.txt \
83 NON-UNIX-USE \
84 INSTALL
85
86 # These files are used in the preparation of a release
87 EXTRA_DIST += \
88 PrepareRelease \
89 CleanTxt \
90 Detrail \
91 132html \
92 Index.html
93
94 # These files are to do with building for Virtual Pascal
95 EXTRA_DIST += \
96 makevp.bat \
97 !compile.txt \
98 !linklib.txt \
99 pcregexp.pas
100
101 # These files are usable versions of pcre.h and config.h that are distributed
102 # for the benefit of people who are building PCRE manually, without the
103 # Autotools support.
104 EXTRA_DIST += \
105 pcre.h.generic \
106 config.h.generic
107
108 # These are the header files we'll install. We do not distribute pcre.h because
109 # it is generated from pcre.h.in.
110 nodist_include_HEADERS = \
111 pcre.h
112 include_HEADERS = \
113 pcreposix.h
114
115 # These additional headers will be be installed if C++ support is enabled. We
116 # do not distribute pcrecpparg.h or pcre_stringpiece.h, as these are generated
117 # from corresponding .h.in files (which we do distribute).
118 if WITH_PCRE_CPP
119 nodist_include_HEADERS += \
120 pcrecpparg.h \
121 pcre_stringpiece.h
122 include_HEADERS += \
123 pcrecpp.h \
124 pcre_scanner.h
125 endif # WITH_PCRE_CPP
126
127 bin_SCRIPTS = pcre-config
128
129 ## ---------------------------------------------------------------
130 ## Some helper programs used to compile libpcre. They aren't user-visible.
131 noinst_PROGRAMS += dftables
132 dftables_SOURCES = dftables.c
133
134 pcre_chartables.c: dftables$(EXEEXT)
135 ./dftables$(EXEEXT) $@
136
137 ## The main pcre library
138 lib_LTLIBRARIES += libpcre.la
139 libpcre_la_SOURCES = \
140 pcre_compile.c \
141 pcre_config.c \
142 pcre_dfa_exec.c \
143 pcre_exec.c \
144 pcre_fullinfo.c \
145 pcre_get.c \
146 pcre_globals.c \
147 pcre_info.c \
148 pcre_internal.h \
149 pcre_maketables.c \
150 pcre_newline.c \
151 pcre_ord2utf8.c \
152 pcre_refcount.c \
153 pcre_study.c \
154 pcre_tables.c \
155 pcre_try_flipped.c \
156 pcre_ucp_searchfuncs.c \
157 pcre_valid_utf8.c \
158 pcre_version.c \
159 pcre_xclass.c \
160 ucp.h \
161 ucpinternal.h \
162 ucptable.h
163
164 ## This file is generated as part of the building process, so don't distribute.
165 nodist_libpcre_la_SOURCES = \
166 pcre_chartables.c
167
168 # The pcre_printint.src file is #included by some source files, so it must be
169 # distributed.
170 EXTRA_DIST += pcre_printint.src
171
172 libpcre_la_LDFLAGS = $(EXTRA_LIBPCRE_LDFLAGS)
173
174 CLEANFILES += pcre_chartables.c
175
176 ## A version of the main pcre library that has a posix re API.
177 lib_LTLIBRARIES += libpcreposix.la
178 libpcreposix_la_SOURCES = \
179 pcreposix.c
180 libpcreposix_la_LDFLAGS = $(EXTRA_LIBPCREPOSIX_LDFLAGS)
181 libpcreposix_la_LIBADD = libpcre.la
182
183 ## There's a C++ library as well.
184 if WITH_PCRE_CPP
185
186 lib_LTLIBRARIES += libpcrecpp.la
187 libpcrecpp_la_SOURCES = \
188 pcrecpp.cc \
189 pcre_scanner.cc \
190 pcre_stringpiece.cc
191 libpcrecpp_la_LDFLAGS = $(EXTRA_LIBPCRECPP_LDFLAGS)
192 libpcrecpp_la_LIBADD = libpcre.la
193
194 TESTS += pcrecpp_unittest
195 noinst_PROGRAMS += pcrecpp_unittest
196 pcrecpp_unittest_SOURCES = pcrecpp_unittest.cc
197 pcrecpp_unittest_LDADD = libpcrecpp.la
198
199 TESTS += pcre_scanner_unittest
200 noinst_PROGRAMS += pcre_scanner_unittest
201 pcre_scanner_unittest_SOURCES = pcre_scanner_unittest.cc
202 pcre_scanner_unittest_LDADD = libpcrecpp.la
203
204 TESTS += pcre_stringpiece_unittest
205 noinst_PROGRAMS += pcre_stringpiece_unittest
206 pcre_stringpiece_unittest_SOURCES = pcre_stringpiece_unittest.cc
207 pcre_stringpiece_unittest_LDADD = libpcrecpp.la
208
209 endif # WITH_PCRE_CPP
210
211 ## The main unit tests
212
213 # Each unit test is a binary plus a script that runs that binary in various
214 # ways. We install these test binaries in case folks find it helpful.
215
216 TESTS += RunTest
217 noinst_SCRIPTS += RunTest
218 EXTRA_DIST += RunTest.bat
219 bin_PROGRAMS += pcretest
220 pcretest_SOURCES = pcretest.c
221 pcretest_LDADD = libpcreposix.la
222
223 TESTS += RunGrepTest
224 noinst_SCRIPTS += RunGrepTest
225 bin_PROGRAMS += pcregrep
226 pcregrep_SOURCES = pcregrep.c
227 pcregrep_LDADD = libpcreposix.la
228
229 EXTRA_DIST += \
230 testdata/grepinput \
231 testdata/grepinput8 \
232 testdata/grepinputx \
233 testdata/greplist \
234 testdata/grepoutput \
235 testdata/grepoutput8 \
236 testdata/testinput1 \
237 testdata/testinput2 \
238 testdata/testinput3 \
239 testdata/testinput4 \
240 testdata/testinput5 \
241 testdata/testinput6 \
242 testdata/testinput7 \
243 testdata/testinput8 \
244 testdata/testinput9 \
245 testdata/testoutput1 \
246 testdata/testoutput2 \
247 testdata/testoutput3 \
248 testdata/testoutput4 \
249 testdata/testoutput5 \
250 testdata/testoutput6 \
251 testdata/testoutput7 \
252 testdata/testoutput8 \
253 testdata/testoutput9 \
254 perltest.pl
255
256 CLEANFILES += \
257 testsavedregex \
258 teststderr \
259 testtry
260
261 # PCRE demonstration program
262 noinst_PROGRAMS += pcredemo
263 pcredemo_SOURCES = pcredemo.c
264 pcredemo_LDADD = libpcre.la
265
266 ## Utility rules, documentation, etc.
267
268 # A compatibility line, the old build system worked with 'make test'
269 test: check ;
270
271 # We have .pc files for pkg-config users.
272 pkgconfigdir = $(libdir)/pkgconfig
273 pkgconfig_DATA = libpcre.pc
274 if WITH_PCRE_CPP
275 pkgconfig_DATA += libpcrecpp.pc
276 endif
277
278 dist_man_MANS = \
279 doc/pcre.3 \
280 doc/pcre_compile.3 \
281 doc/pcre_compile2.3 \
282 doc/pcre_config.3 \
283 doc/pcre_copy_named_substring.3 \
284 doc/pcre_copy_substring.3 \
285 doc/pcre_dfa_exec.3 \
286 doc/pcre_exec.3 \
287 doc/pcre_free_substring.3 \
288 doc/pcre_free_substring_list.3 \
289 doc/pcre_fullinfo.3 \
290 doc/pcre_get_named_substring.3 \
291 doc/pcre_get_stringnumber.3 \
292 doc/pcre_get_stringtable_entries.3 \
293 doc/pcre_get_substring.3 \
294 doc/pcre_get_substring_list.3 \
295 doc/pcre_info.3 \
296 doc/pcre_maketables.3 \
297 doc/pcre_refcount.3 \
298 doc/pcre_study.3 \
299 doc/pcre_version.3 \
300 doc/pcreapi.3 \
301 doc/pcrebuild.3 \
302 doc/pcrecallout.3 \
303 doc/pcrecompat.3 \
304 doc/pcregrep.1 \
305 doc/pcrematching.3 \
306 doc/pcrepartial.3 \
307 doc/pcrepattern.3 \
308 doc/pcreperform.3 \
309 doc/pcreposix.3 \
310 doc/pcreprecompile.3 \
311 doc/pcresample.3 \
312 doc/pcrestack.3 \
313 doc/pcretest.1
314
315 pcrecpp_man = doc/pcrecpp.3
316 EXTRA_DIST += $(pcrecpp_man)
317
318 if WITH_PCRE_CPP
319 man_MANS = $(pcrecpp_man)
320 endif
321
322 ## CMake support
323
324 EXTRA_DIST += \
325 CMakeLists.txt \
326 config-cmake.h.in
327
328 config-cmake.h.in: config.h.in
329 sed 's/#undef/#cmakedefine/g' config.h.in >$@
330
331 MAINTAINERCLEANFILES += config-cmake.h.in
332
333 ## end Makefile.am

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12