A working one, we can use `nmake -f Make_mvc.mak install` to install all 
language file into src/runtime/lang.

PS: `(set target=%i) && echo %target%` seems not working in nmake makefile.

Another problem is %i and %%i in batch for loop. If we call `nmake -f 
Make_mvc.mak install` in a batch file, we maybe need use %%i rather than %i.

A possible solution for this problem is 
https://msdn.microsoft.com/en-us/library/f2x0zs74.aspx.



diff -r b2839b524d9f src/po/Make_mvc.mak
--- a/src/po/Make_mvc.mak       Sun Jul 12 17:52:57 2015 +0200
+++ b/src/po/Make_mvc.mak       Tue Jul 14 00:46:54 2015 +0800
@@ -62,6 +62,10 @@

 PACKAGE = vim

+!if "$(VIMRUNTIME)"==""
+VIMRUNTIME = ..\..\runtime
+!endif
+
 # Correct the following line for the directory where gettext et al is installed
 GETTEXT_PATH = H:\gettext.0.14.4\bin

@@ -102,8 +106,11 @@
        $(RM) [email protected]

 install:
-       if not exist $(INSTALLDIR) $(MKD) $(INSTALLDIR)
-       $(CP) $(LANGUAGE).mo $(INSTALLDIR)\$(PACKAGE).mo
+       @for %i in ($(LANGUAGES)) do @( \
+               echo copying %i && \
+               ( if not exist $(VIMRUNTIME)\lang\%i\LC_MESSAGES $(MKD) 
$(VIMRUNTIME)\lang\%i\LC_MESSAGES ) && \
+               $(CP) %i.mo $(VIMRUNTIME)\lang\%i\LC_MESSAGES\$(PACKAGE).mo \
+       )

 clean:
        $(RM) *.mo

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui