diff --git a/src/po/.gitignore b/src/po/.gitignore index 1652506..75de210 100644 --- a/src/po/.gitignore +++ b/src/po/.gitignore @@ -8,3 +8,6 @@ /sjiscorr /sjiscorr.exe /vim.pot +/vim-lang-ja-po*.tar.gz +/vim-lang-ja-po*.tar.bz2 +/vim-lang-ja-po*.tar.xz diff --git a/src/po/Makefile b/src/po/Makefile index d96186a..59b2050 100644 --- a/src/po/Makefile +++ b/src/po/Makefile @@ -1,5 +1,14 @@ +ARCHIVE = vim-lang-ja-po +ARCHIVE_EXT = xz +ARCHIVE_DIR = $(ARCHIVE) +ARCHIVE_FILE = $(ARCHIVE).tar.$(ARCHIVE_EXT) + MASTER_PO = ja.po +POFILES = ja.po \ + ja.euc-jp.po \ + ja.sjis.po + MOFILES = ja.mo \ ja.euc-jp.mo \ ja.sjis.mo @@ -16,6 +25,15 @@ VIM = vim test: check $(MOFILES) +release: + @rm -rf $(ARCHIVE_DIR) $(ARCHIVE_FILE) + $(MAKE) test + $(MAKE) $(ARCHIVE_FILE) + rm -rf $(ARCHIVE_DIR) + +release-today: + $(MAKE) release ARCHIVE=vim-lang-ja-po-`date +%Y%m%d` + update: ja.sjis.po ja.euc-jp.po ja.sjis.po: $(MASTER_PO) @@ -50,6 +68,9 @@ clean: checkclean rm -f ja.sjis.po ja.euc-jp.po rm -f *.mo +distclean: clean + rm -f *.tar.bz2 *.tar.gz *.tar.xz + #ja.po: vim.pot # rm -f $@.old # mv $@ $@.old @@ -67,3 +88,16 @@ check: $(CHECKFILES) checkclean: rm -f *.ck + +$(ARCHIVE_DIR): $(POFILES) + mkdir -p $@/src/po + cp $(POFILES) $@/src/po + +$(ARCHIVE).tar.gz: $(ARCHIVE_DIR) + tar -czf $@ $< + +$(ARCHIVE).tar.bz2: $(ARCHIVE_DIR) + tar -cjf $@ $< + +$(ARCHIVE).tar.xz: $(ARCHIVE_DIR) + tar -cJf $@ $<