From: Adam Dickmeiss Date: Mon, 11 May 2015 12:51:36 +0000 (+0200) Subject: Allow version.nsi to be generated on Windows X-Git-Tag: v5.12.1~5 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=b8d7ac4d30477a8700bd1a68d437be3fcff05193;p=yaz-moved-to-github.git Allow version.nsi to be generated on Windows --- diff --git a/win/makefile b/win/makefile index 1f3ffb8..c296ed0 100644 --- a/win/makefile +++ b/win/makefile @@ -53,11 +53,11 @@ YAZ4J_DIR="..\..\yaz4j" YAZPATH="$(MAKEDIR)\.." -dist: yaz.win32.nsi yaz.nsi distclean +dist: yaz.win32.nsi yaz.nsi version.nsi distclean nmake DEBUG=0 allj $(NSIS) yaz.win32.nsi -dist64: yaz.win64.nsi yaz.nsi distclean +dist64: yaz.win64.nsi yaz.nsi version.nsi distclean nmake make64 $(NSIS) yaz.win64.nsi @@ -69,10 +69,10 @@ distclean: nmake DEBUG=1 clean nmake DEBUG=0 clean -nsis: all yaz.win32.nsi +nsis: all yaz.win32.nsi version.nsi $(NSIS) yaz.win32.nsi -nsis64: yaz.win64.nsi +nsis64: yaz.win64.nsi version.nsi $(NSIS) yaz.win64.nsi nsishelp: @@ -875,6 +875,9 @@ $(INCLDIR)\yaz\yaz-version.h: $(ROOTDIR)/IDMETA @cd $(SRCDIR) $(TCL) mk_version.tcl $(ROOTDIR)/IDMETA $(INCLDIR)\yaz\yaz-version.h +version.nsi: $(ROOTDIR)/IDMETA + $(TCL) $(SRCDIR)/mk_version.tcl $(ROOTDIR)/IDMETA version.nsi + !endif diff --git a/win/version.nsi.in b/win/version.nsi.in index 5fa481b..254a8cd 100644 --- a/win/version.nsi.in +++ b/win/version.nsi.in @@ -1,2 +1,2 @@ -!define VERSION "@PACKAGE_VERSION@" +!define VERSION "@VERSION@"