Skip to content

Commit

Permalink
tutor: Preparation for tutor1/2
Browse files Browse the repository at this point in the history
  • Loading branch information
k-takata committed Dec 18, 2024
1 parent 498f186 commit b934b05
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ import-en-files:
"$(VIM_SRC_DIR)"/runtime/doc/vimtutor.1 \
"$(VIM_SRC_DIR)"/runtime/doc/xxd.1 \
runtime/doc/
cp "$(VIM_SRC_DIR)"/runtime/tutor/tutor runtime/tutor/
cp "$(VIM_SRC_DIR)"/runtime/tutor/tutor1 runtime/tutor/
cp "$(VIM_SRC_DIR)"/runtime/tutor/tutor2 runtime/tutor/
cp "$(VIM_SRC_DIR)"/nsis/lang/english.nsi nsis/lang/

# Update Vim source directory.
Expand Down Expand Up @@ -69,7 +70,7 @@ install: test
cp src/po/ja.sjis.mo $(INSTALL_DIR)/lang/ja.sjis/LC_MESSAGES/vim.mo
cp runtime/lang/menu_ja*.vim $(INSTALL_DIR)/lang
cp runtime/doc/*.UTF-8.1 $(INSTALL_DIR)/doc
cp runtime/tutor/tutor.ja.* $(INSTALL_DIR)/tutor
cp runtime/tutor/tutor*.ja.* $(INSTALL_DIR)/tutor

clean:
rm -rf $(ARCHIVE_DIR) $(ARCHIVE_FILE)
Expand Down Expand Up @@ -102,7 +103,7 @@ $(ARCHIVE_DIR):
cp src/po/*.po $@/src/po
cp runtime/lang/menu_ja*.vim $@/runtime/lang
cp runtime/doc/*.UTF-8.1 $@/runtime/doc
cp runtime/tutor/tutor.ja.* $@/runtime/tutor
cp runtime/tutor/tutor*.ja.* $@/runtime/tutor
cp nsis/lang/japanese.nsi $@/nsis/lang

$(ARCHIVE).tar.gz: $(ARCHIVE_DIR)
Expand Down
12 changes: 6 additions & 6 deletions runtime/tutor/Makefile
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
MASTER_TUTOR = tutor.ja.utf-8
MASTER_TUTOR1 = tutor1.ja.utf-8

test: update

update: tutor.ja.sjis tutor.ja.euc
update: tutor1.ja.sjis tutor1.ja.euc

tutor.ja.sjis: $(MASTER_TUTOR)
tutor1.ja.sjis: $(MASTER_TUTOR1)
iconv -f utf-8 -t cp932 < $< > $@

tutor.ja.euc: $(MASTER_TUTOR)
tutor1.ja.euc: $(MASTER_TUTOR1)
iconv -f utf-8 -t euc-jp < $< > $@

force: touch
@$(MAKE) update

touch: $(MASTER_TUTOR)
touch: $(MASTER_TUTOR1)
touch $<

clean:
rm -f tutor.ja.sjis tutor.ja.euc
rm -f tutor1.ja.sjis tutor1.ja.euc
File renamed without changes.
File renamed without changes.

0 comments on commit b934b05

Please sign in to comment.