Mercurial > mxe-octave
diff binary-dist-rules.mk @ 6622:1f6d83d95f96
Update octave-launch file version info for octave version (Bug #63740)
* binary-dist-rules.mk: add rule to generate octave-launch.rc and use in launcher
* installer-files/octave-launch.rc: rename to installer-files/octave-launch.rc.in
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Mon, 06 Feb 2023 12:52:34 -0500 |
parents | 9a909530773b |
children | 2117b017e466 |
line wrap: on
line diff
--- a/binary-dist-rules.mk Thu Feb 02 09:13:11 2023 -0500 +++ b/binary-dist-rules.mk Mon Feb 06 12:52:34 2023 -0500 @@ -114,7 +114,13 @@ installer-files/octave-launch-firsttime.exe: $(TOP_DIR)/installer-files/octave-launch.c installer-files/octave-launch.res | installer-files/.dirstamp $(MXE_CC) $< -o $@ installer-files/octave-launch.res -Wl,--subsystem,windows -lshlwapi -municode -DUNICODE -D_UNICODE -DFIRST_TIME $(OCTAVE_LAUNCH_NO_SHORT_CPPFLAGS) -installer-files/octave-launch.res: $(TOP_DIR)/installer-files/octave-launch.rc | installer-files/.dirstamp +installer-files/octave-logo.ico: $(TOP_DIR)/installer-files/octave-logo.ico | installer-files/.dirstamp + cp -a $< $@ + +installer-files/octave-launch.rc: $(TOP_DIR)/installer-files/octave-launch.rc.in | installer-files/octave-logo.ico installer-files/.dirstamp + $(SED) $< -e 's/@PRODUCT_VERSION@/$($(OCTAVE_TARGET)_VERSION)/' -e "s/@PRODUCT_VERSION_COMMA@/$(shell echo $($(OCTAVE_TARGET)_VERSION).0 | $(SED) 's|\.|,|g')/" > $@ + +installer-files/octave-launch.res: installer-files/octave-launch.rc | installer-files/.dirstamp $(MXE_WINDRES) $< -o $@ -O coff endif