comparison Makefile.am @ 247:1ae4d8b28a5c

autotools/windres: use AC_PROG_SED for sed sed is actually surprisingly unportable. on mingw this shouldn't be a problem, but alas, we should use it anyway
author Paper <mrpapersonic@gmail.com>
date Wed, 24 Jan 2024 20:15:35 -0500
parents 4d461ef7d424
children 6b2441c776dd
comparison
equal deleted inserted replaced
236:4d461ef7d424 247:1ae4d8b28a5c
67 if BUILD_WIN 67 if BUILD_WIN
68 files_win = src/sys/win32/dark_theme.cc 68 files_win = src/sys/win32/dark_theme.cc
69 69
70 if BUILD_WINDRES 70 if BUILD_WINDRES
71 # Untested... 71 # Untested...
72 wrcflags_version = -DWRC_VERSION=0,`echo '$(PACKAGE_VERSION)' | sed 's/(\d+)\.(\d+)\.(\d+)/\1,\2,\3/'` 72 wrcflags_version = -DWRC_VERSION=0,`echo '$(PACKAGE_VERSION)' | @SED@ 's/(\d+)\.(\d+)\.(\d+)/\1,\2,\3/'`
73 73
74 WRCFLAGS = --use-temp-file -I. -I$(srcdir) $(wrcflags_version) 74 WRCFLAGS = --use-temp-file -I. -I$(srcdir) $(wrcflags_version)
75 .rc.$(OBJEXT): 75 .rc.$(OBJEXT):
76 $(WINDRES) $(WRCFLAGS) -i $< -o $@ 76 $(WINDRES) $(WRCFLAGS) -i $< -o $@
77 files_windres=rc/win32/version.rc 77 files_windres=rc/win32/version.rc