comparison 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
comparison
equal deleted inserted replaced
6621:3ad1333318eb 6622:1f6d83d95f96
112 112
113 ## FIXME: We aren't using VPATH? 113 ## FIXME: We aren't using VPATH?
114 installer-files/octave-launch-firsttime.exe: $(TOP_DIR)/installer-files/octave-launch.c installer-files/octave-launch.res | installer-files/.dirstamp 114 installer-files/octave-launch-firsttime.exe: $(TOP_DIR)/installer-files/octave-launch.c installer-files/octave-launch.res | installer-files/.dirstamp
115 $(MXE_CC) $< -o $@ installer-files/octave-launch.res -Wl,--subsystem,windows -lshlwapi -municode -DUNICODE -D_UNICODE -DFIRST_TIME $(OCTAVE_LAUNCH_NO_SHORT_CPPFLAGS) 115 $(MXE_CC) $< -o $@ installer-files/octave-launch.res -Wl,--subsystem,windows -lshlwapi -municode -DUNICODE -D_UNICODE -DFIRST_TIME $(OCTAVE_LAUNCH_NO_SHORT_CPPFLAGS)
116 116
117 installer-files/octave-launch.res: $(TOP_DIR)/installer-files/octave-launch.rc | installer-files/.dirstamp 117 installer-files/octave-logo.ico: $(TOP_DIR)/installer-files/octave-logo.ico | installer-files/.dirstamp
118 cp -a $< $@
119
120 installer-files/octave-launch.rc: $(TOP_DIR)/installer-files/octave-launch.rc.in | installer-files/octave-logo.ico installer-files/.dirstamp
121 $(SED) $< -e 's/@PRODUCT_VERSION@/$($(OCTAVE_TARGET)_VERSION)/' -e "s/@PRODUCT_VERSION_COMMA@/$(shell echo $($(OCTAVE_TARGET)_VERSION).0 | $(SED) 's|\.|,|g')/" > $@
122
123 installer-files/octave-launch.res: installer-files/octave-launch.rc | installer-files/.dirstamp
118 $(MXE_WINDRES) $< -o $@ -O coff 124 $(MXE_WINDRES) $< -o $@ -O coff
119 endif 125 endif
120 126
121 ifeq ($(MXE_WINDOWS_BUILD),yes) 127 ifeq ($(MXE_WINDOWS_BUILD),yes)
122 ifeq ($(MXE_NATIVE_BUILD),no) 128 ifeq ($(MXE_NATIVE_BUILD),no)