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
This commit is contained in:
Alyx Burke 2024-01-12 20:31:21 +00:00 committed by GitHub
parent 34aaf7808e
commit 396b8e1d81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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:,$<,$@)