/[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 1165 by chpe, Tue Oct 23 11:17:28 2012 UTC revision 1172 by ph10, Wed Oct 24 16:41:07 2012 UTC
# Line 132  EXTRA_DIST += \ Line 132  EXTRA_DIST += \
132    pcre.h.generic \    pcre.h.generic \
133    config.h.generic    config.h.generic
134    
135  pcre.h.generic: configure.ac  # The only difference between pcre.h.in and pcre.h is the setting of the PCRE
136    # version number. Therefore, we can create the generic version just by copying.
137    pcre.h.generic: pcre.h.in configure.ac
138          rm -f $@          rm -f $@
139          cp -p pcre.h $@          cp -p pcre.h $@
140    
141  MAINTAINERCLEANFILES += pcre.h.generic  # It is more complicated for config.h.generic. We need the version that results
142    # from a default configuration. We can get this by doing a configure in a
143    # temporary directory. It has to be entirely done using files in that
144    # directory, because the source directory may already be configured. If you
145    # just try running configure in a new directory, it complains that the source
146    # directory is already configured.
147    config.h.generic: configure.ac
148            rm -rf $@ _generic
149            mkdir _generic
150            cp configure *.in _generic
151            (cd _generic; ./configure srcdir=.)
152            perl -pe 'if(/^#define\s(?!PACKAGE)(\w+)/){print"#ifndef $$1\n$$_#endif\n";$$_="";}' _generic/config.h >$@
153            rm -rf _generic
154    
155    MAINTAINERCLEANFILES += pcre.h.generic config.h.generic
156    
157  # These are the header files we'll install. We do not distribute pcre.h because  # These are the header files we'll install. We do not distribute pcre.h because
158  # it is generated from pcre.h.in.  # it is generated from pcre.h.in.

Legend:
Removed from v.1165  
changed lines
  Added in v.1172

  ViewVC Help
Powered by ViewVC 1.1.5