Ticket #184: gen_version_h.patch

File gen_version_h.patch, 1.2 KB (added by Mark Hammond, 17 years ago)

generate include\xapian\version.h from msvc\version.h.in

  • xapian-maintainer-tools/win32msvc/Makefile

     
    9292# Copy mak files to the right folders
    9393COPYMAKFILES:
    9494   copy config.h.win32 ..\config.h
    95    copy ..\msvc\version.h ..\include\xapian\version.h
    9695   copy  win32_api.mak ..\api\Makefile
    9796   copy  win32_backends.mak ..\backends\Makefile
    9897   copy  win32_backends_flint.mak ..\backends\flint\Makefile
     
    128127   if not exist $(PERL_EXE) exit(1)
    129128   
    130129# Header files generated automatically from various .in files
    131 MAKEHEADERS: ..\include\xapian\error.h
     130MAKEHEADERS: ..\include\xapian\error.h ..\include\xapian\version.h
    132131
    133132..\generate-exceptions: ..\generate-exceptions.in Makefile
    134133    $(PERL_EXE) -pe "BEGIN{$$perl=shift @ARGV} s,\@PERL\@,$$perl," "$(PERL_EXE)" ..\generate-exceptions.in > ..\generate-exceptions
     
    137136    cd..
    138137    $(PERL_EXE) generate-exceptions
    139138    cd win32
    140        
     139
     140..\include\xapian\version.h: ..\msvc\version.h.in ..\configure.ac
     141    $(PERL_EXE) ..\msvc\genversion.pl ..\configure.ac ..\msvc\version.h.in ..\include\xapian\version.h
     142