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

Diff of /code/trunk/Makefile.am

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 100 by ph10, Tue Mar 6 14:53:10 2007 UTC revision 199 by ph10, Tue Jul 31 14:39:09 2007 UTC
# Line 2  Line 2 
2    
3  dist_doc_DATA = \  dist_doc_DATA = \
4    doc/pcre.txt \    doc/pcre.txt \
5      doc/pcre-config.txt \
6    doc/pcregrep.txt \    doc/pcregrep.txt \
7    doc/pcretest.txt \    doc/pcretest.txt \
   doc/perltest.txt \  
8    AUTHORS \    AUTHORS \
9    COPYING \    COPYING \
10    ChangeLog \    ChangeLog \
   INSTALL \  
11    LICENCE \    LICENCE \
12    NEWS \    NEWS \
   NON-UNIX-USE \  
13    README    README
14    
15  dist_html_DATA = \  dist_html_DATA = \
16    doc/html/index.html \    doc/html/index.html \
17    doc/html/pcre.html \    doc/html/pcre.html \
18      doc/html/pcre-config.html \
19    doc/html/pcre_compile.html \    doc/html/pcre_compile.html \
20    doc/html/pcre_compile2.html \    doc/html/pcre_compile2.html \
21    doc/html/pcre_config.html \    doc/html/pcre_config.html \
# Line 66  lib_LTLIBRARIES = Line 65  lib_LTLIBRARIES =
65  # TESTS is for binary unit tests, check_SCRIPTS for script-based tests  # TESTS is for binary unit tests, check_SCRIPTS for script-based tests
66  TESTS =  TESTS =
67  check_SCRIPTS =  check_SCRIPTS =
68  noinst_SCRIPTS =  dist_noinst_SCRIPTS =
69    
70  # Some of the binaries we make are to be installed, and others are  # Some of the binaries we make are to be installed, and others are
71  # (non-user-visible) helper programs needed to build libpcre.  # (non-user-visible) helper programs needed to build libpcre.
# Line 77  noinst_PROGRAMS = Line 76  noinst_PROGRAMS =
76  CLEANFILES =  CLEANFILES =
77  MAINTAINERCLEANFILES =  MAINTAINERCLEANFILES =
78    
79  # Additional files to bundle with the distribution.  # Additional files to bundle with the distribution, over and above what
80    # the Autotools include by default.
81  EXTRA_DIST =  EXTRA_DIST =
82    
83  # These are the header files we'll install.  Note that while pcre.h is  # These files contain maintenance information
84  # generated from pcre.h.in, we want to include it in the distribution so  EXTRA_DIST += \
85  # that users building without Autotools support have an easier time of it.    doc/perltest.txt \
86      NON-UNIX-USE \
87      HACKING
88    
89    # These files are used in the preparation of a release
90    EXTRA_DIST += \
91      PrepareRelease \
92      CleanTxt \
93      Detrail \
94      132html \
95      doc/index.html.src
96    
97    # These files are to do with building for Virtual Pascal
98    EXTRA_DIST += \
99      makevp.bat \
100      makevp_c.txt \
101      makevp_l.txt \
102      pcregexp.pas
103    
104    # These files are usable versions of pcre.h and config.h that are distributed
105    # for the benefit of people who are building PCRE manually, without the
106    # Autotools support.
107    EXTRA_DIST += \
108      pcre.h.generic \
109      config.h.generic
110    
111    pcre.h.generic: configure.ac
112            rm -f $@
113            cp -p pcre.h $@
114    
115    MAINTAINERCLEANFILES += pcre.h.generic
116    
117    # These are the header files we'll install. We do not distribute pcre.h because
118    # it is generated from pcre.h.in.
119    nodist_include_HEADERS = \
120      pcre.h
121  include_HEADERS = \  include_HEADERS = \
   pcre.h \  
122    pcreposix.h    pcreposix.h
123    
124  # These will be installed too, if C++ support is enabled. We don't  # These additional headers will be be installed if C++ support is enabled. We
125  # distribute pcrecpparg.h nor pcre_stringpiece.h, as these are generated  # do not distribute pcrecpparg.h or pcre_stringpiece.h, as these are generated
126  # from corresponding .h.in files (which we do distribute).  # from corresponding .h.in files (which we do distribute).
127  if WITH_PCRE_CPP  if WITH_PCRE_CPP
128  nodist_include_HEADERS = \  nodist_include_HEADERS += \
129    pcrecpparg.h \    pcrecpparg.h \
130    pcre_stringpiece.h    pcre_stringpiece.h
131  include_HEADERS += \  include_HEADERS += \
# Line 102  endif # WITH_PCRE_CPP Line 136  endif # WITH_PCRE_CPP
136  bin_SCRIPTS = pcre-config  bin_SCRIPTS = pcre-config
137    
138  ## ---------------------------------------------------------------  ## ---------------------------------------------------------------
139  ## Some helper programs used to compile libpcre.  They aren't user-visible.  ## The dftables program is used to rebuild character tables before compiling
140    ## PCRE, if --enable-rebuild-chartables is specified. It is not a user-visible
141    ## program. The default (when --enable-rebuild-chartables is not specified) is
142    ## to copy a distributed set of tables that are defined for ASCII code. In this
143    ## case, dftables is not needed.
144    
145    if WITH_REBUILD_CHARTABLES
146    
147  noinst_PROGRAMS += dftables  noinst_PROGRAMS += dftables
148  dftables_SOURCES = dftables.c  dftables_SOURCES = dftables.c
149    
150  pcre_chartables.c: dftables$(EXEEXT)  pcre_chartables.c: dftables$(EXEEXT)
151          ./dftables$(EXEEXT) $@          ./dftables$(EXEEXT) $@
152    else
153    
154    pcre_chartables.c: $(srcdir)/pcre_chartables.c.dist
155            rm -f $@
156            $(LN_S) $(srcdir)/pcre_chartables.c.dist $@
157    
158    endif # WITH_REBUILD_CHARTABLES
159    
160    
161  ## The main pcre library  ## The main pcre library
162  lib_LTLIBRARIES += libpcre.la  lib_LTLIBRARIES += libpcre.la
# Line 135  libpcre_la_SOURCES = \ Line 184  libpcre_la_SOURCES = \
184    ucp.h \    ucp.h \
185    ucpinternal.h \    ucpinternal.h \
186    ucptable.h    ucptable.h
187    
188  ## This file is generated as part of the building process, so don't distribute.  ## This file is generated as part of the building process, so don't distribute.
189  nodist_libpcre_la_SOURCES = \  nodist_libpcre_la_SOURCES = \
190    pcre_chartables.c    pcre_chartables.c
191    
192  # The pcre_printint.src file is #included by some source files, so it must be  # The pcre_printint.src file is #included by some source files, so it must be
193  # distributed. In an Autotools world, config.h is generated from config.h.in,  # distributed. The pcre_chartables.c.dist file is the default version of
194  # but, like pcre.h, we want to include it in the distribution so that users  # pcre_chartables.c, used unless --enable-rebuild-chartables is specified.
195  # building without Autotools support have an easier time of it.  EXTRA_DIST += pcre_printint.src pcre_chartables.c.dist
 EXTRA_DIST += pcre_printint.src config.h  
196    
197  libpcre_la_LDFLAGS = $(EXTRA_LIBPCRE_LDFLAGS)  libpcre_la_LDFLAGS = $(EXTRA_LIBPCRE_LDFLAGS)
198    
# Line 162  if WITH_PCRE_CPP Line 210  if WITH_PCRE_CPP
210    
211  lib_LTLIBRARIES += libpcrecpp.la  lib_LTLIBRARIES += libpcrecpp.la
212  libpcrecpp_la_SOURCES = \  libpcrecpp_la_SOURCES = \
213      pcrecpp_internal.h \
214    pcrecpp.cc \    pcrecpp.cc \
215    pcre_scanner.cc \    pcre_scanner.cc \
216    pcre_stringpiece.cc    pcre_stringpiece.cc
# Line 191  endif # WITH_PCRE_CPP Line 240  endif # WITH_PCRE_CPP
240  # ways. We install these test binaries in case folks find it helpful.  # ways. We install these test binaries in case folks find it helpful.
241    
242  TESTS += RunTest  TESTS += RunTest
243  noinst_SCRIPTS += RunTest  dist_noinst_SCRIPTS += RunTest
244  EXTRA_DIST += RunTest.bat  EXTRA_DIST += RunTest.bat
245  bin_PROGRAMS += pcretest  bin_PROGRAMS += pcretest
246  pcretest_SOURCES = pcretest.c  pcretest_SOURCES = pcretest.c
247  pcretest_LDADD = libpcreposix.la  pcretest_LDADD = libpcreposix.la
248    
249  TESTS += RunGrepTest  TESTS += RunGrepTest
250  noinst_SCRIPTS += RunGrepTest  dist_noinst_SCRIPTS += RunGrepTest
251  bin_PROGRAMS += pcregrep  bin_PROGRAMS += pcregrep
252  pcregrep_SOURCES = pcregrep.c  pcregrep_SOURCES = pcregrep.c
253  pcregrep_LDADD = libpcreposix.la  pcregrep_LDADD = libpcreposix.la
# Line 210  EXTRA_DIST += \ Line 259  EXTRA_DIST += \
259    testdata/greplist \    testdata/greplist \
260    testdata/grepoutput \    testdata/grepoutput \
261    testdata/grepoutput8 \    testdata/grepoutput8 \
262      testdata/grepoutputN \
263    testdata/testinput1 \    testdata/testinput1 \
264    testdata/testinput2 \    testdata/testinput2 \
265    testdata/testinput3 \    testdata/testinput3 \
# Line 219  EXTRA_DIST += \ Line 269  EXTRA_DIST += \
269    testdata/testinput7 \    testdata/testinput7 \
270    testdata/testinput8 \    testdata/testinput8 \
271    testdata/testinput9 \    testdata/testinput9 \
272      testdata/testinput10 \
273    testdata/testoutput1 \    testdata/testoutput1 \
274    testdata/testoutput2 \    testdata/testoutput2 \
275    testdata/testoutput3 \    testdata/testoutput3 \
# Line 228  EXTRA_DIST += \ Line 279  EXTRA_DIST += \
279    testdata/testoutput7 \    testdata/testoutput7 \
280    testdata/testoutput8 \    testdata/testoutput8 \
281    testdata/testoutput9 \    testdata/testoutput9 \
282      testdata/testoutput10 \
283    perltest.pl    perltest.pl
284    
285  CLEANFILES += \  CLEANFILES += \
286          testsavedregex \          testsavedregex \
287          teststderr \          teststderr \
288          testtry          testtry \
289            testNinput
290    
291  # PCRE demonstration program  # PCRE demonstration program
292  noinst_PROGRAMS += pcredemo  noinst_PROGRAMS += pcredemo
# Line 254  endif Line 307  endif
307    
308  dist_man_MANS = \  dist_man_MANS = \
309    doc/pcre.3 \    doc/pcre.3 \
310      doc/pcre-config.1 \
311    doc/pcre_compile.3 \    doc/pcre_compile.3 \
312    doc/pcre_compile2.3 \    doc/pcre_compile2.3 \
313    doc/pcre_config.3 \    doc/pcre_config.3 \
# Line 302  EXTRA_DIST += \ Line 356  EXTRA_DIST += \
356    CMakeLists.txt \    CMakeLists.txt \
357    config-cmake.h.in    config-cmake.h.in
358    
 config-cmake.h.in: config.h.in  
         sed 's/#undef/#cmakedefine/g' config.h.in >$@  
   
 MAINTAINERCLEANFILES += config-cmake.h.in  
   
359  ## end Makefile.am  ## end Makefile.am

Legend:
Removed from v.100  
changed lines
  Added in v.199

  ViewVC Help
Powered by ViewVC 1.1.5