Skip to content

Commit

Permalink
Merge 8d31778 into 6cc86ab
Browse files Browse the repository at this point in the history
  • Loading branch information
berryzplus authored May 10, 2021
2 parents 6cc86ab + 8d31778 commit bfc9179
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion sakura_lang_en_US/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,16 @@ MKDIR = md
RM = del
DIRSEP = $(strip \ )
DEVNULL = NUL
ICONV = C:\msys64\usr\bin\iconv.exe
SED = C:\msys64\usr\bin\sed.exe
else
# If unix-like shell is used.
MKDIR = mkdir -p
RM = rm -f
DIRSEP = /
DEVNULL = /dev/null
ICONV = iconv
SED = sed
endif

ifndef PREFIX
Expand Down Expand Up @@ -97,9 +101,12 @@ ifneq ($(SAKURA_CORE),.)
endif
$(MAKE) -f $< -C $(@D) $(@F)

sakura_lang_rc.o: sakura_lang_rc.rc $(sakura_rc)
sakura_lang_rc.o: sakura_lang_rc.rc.utf8 sakura_lang_rc.rc2.utf8 $(sakura_rc)
$(RC) -c utf-8 --language=0409 $(DEFINES) -I$(SAKURA_CORE) -I$(SRCDIR)/../sakura_core $< -o $@

sakura_lang_rc.rc.utf8 sakura_lang_rc.rc2.utf8: sakura_lang_rc.rc sakura_lang_rc.rc2
$(ICONV) -f utf-16 -t utf-8 $(SRCDIR)/$(subst .utf8,,$(@F)) | $(SED) -e 1i'#pragma code_page(65001)' -e '/#include/s/.rc2\b/.rc2.utf8/' > $@

clean:
-$(RM) $(subst /,$(DIRSEP),$(dll) $(OBJS))

Expand Down

0 comments on commit bfc9179

Please sign in to comment.