From 396b8e1d81e9ab6539b00185ef4d6fcdf220eba6 Mon Sep 17 00:00:00 2001 From: Alyx Burke <55920990+alyxdeburca@users.noreply.github.com> Date: Fri, 12 Jan 2024 20:31:21 +0000 Subject: [PATCH] Fixes the error "iconv: invalid option -- o" by redirecting stdout to the desired file. (#538) * Fixes the error "iconv: invalid option -- o" by redirecting stdout to the desired file. Fixes build errors on macos --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index f1bc1d4d2..98b7045af 100644 --- a/Makefile +++ b/Makefile @@ -7,6 +7,7 @@ default: all # Preprocessor definitions DEFINES := +UNAME_S := $(shell uname -s) #==============================================================================# # Build Options # @@ -561,10 +562,9 @@ COURSE_DATA_TARGETS := $(foreach dir,$(COURSE_DIRS),$(BUILD_DIR)/$(dir)/course_d #==============================================================================# # Source Code Generation # #==============================================================================# - $(BUILD_DIR)/%.jp.c: %.c $(call print,Encoding:,$<,$@) - iconv -t EUC-JP -f UTF-8 $< -o $@ + iconv -t EUC-JP -f UTF-8 $< > $@ $(BUILD_DIR)/%.o: %.c $(call print,Compiling:,$<,$@)