home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / messages / Make_mvc.mak < prev    next >
Encoding:
Makefile  |  2009-01-21  |  1.7 KB  |  111 lines

  1. # Makefile for the Vim message translations for MSVC
  2. # (based on make_ming.mak)
  3. #
  4. # Mike Williams <mrw@eandem.co.uk>
  5. #
  6. # Please read README_mvc.txt before using this file.
  7. #
  8.  
  9. LANGUAGES = \
  10.         af \
  11.         ca \
  12.         cs \
  13.         de \
  14.         en_GB \
  15.         eo \
  16.         es \
  17.         fi \
  18.         fr \
  19.         ga \
  20.         it \
  21.         ja \
  22.         ko \
  23.         no \
  24.         pl \
  25.         pt_BR \
  26.         ru \
  27.         sk \
  28.         sv \
  29.         uk \
  30.         vi \
  31.         zh_CN \
  32.         zh_CN.UTF-8 \
  33.         zh_TW \
  34.         zh_TW.UTF-8 \
  35.  
  36. MOFILES = \
  37.         af.mo \
  38.         ca.mo \
  39.         cs.mo \
  40.         de.mo \
  41.         en_GB.mo \
  42.         eo.mo \
  43.         es.mo \
  44.         fi.mo \
  45.         fr.mo \
  46.         ga.mo \
  47.         it.mo \
  48.         ja.mo \
  49.         ko.mo \
  50.         no.mo \
  51.         pl.mo \
  52.         pt_BR.mo \
  53.         ru.mo \
  54.         sk.mo \
  55.         sv.mo \
  56.         uk.mo \
  57.         vi.mo \
  58.         zh_CN.UTF-8.mo \
  59.         zh_CN.mo \
  60.         zh_TW.UTF-8.mo \
  61.         zh_TW.mo \
  62.  
  63. PACKAGE = vim
  64.  
  65. # Correct the following line for the installation directory of gettext
  66. GETTEXT_PATH = H:\gettext.win32.msvcrt\bin
  67.  
  68. MSGFMT = $(GETTEXT_PATH)\msgfmt
  69. XGETTEXT = $(GETTEXT_PATH)\xgettext
  70. MSGMERGE = $(GETTEXT_PATH)\msgmerge
  71.  
  72. MV = move
  73. CP = copy
  74. RM = del
  75. MKD = mkdir
  76. LS = dir
  77.  
  78. LSFLAGS = /b /on /l /s
  79.  
  80. INSTALLDIR = $(VIMRUNTIME)\lang\$(LANGUAGE)\LC_MESSAGES
  81.  
  82. .SUFFIXES:
  83. .SUFFIXES: .po .mo .pot
  84.  
  85. .po.mo:
  86.     $(MSGFMT) -o $@ $<
  87.  
  88. all: $(MOFILES)
  89.  
  90. files:
  91.     $(LS) $(LSFLAGS) ..\*.c ..\if_perl.xs ..\globals.h > .\files
  92.  
  93. first_time: files
  94.     $(XGETTEXT) --default-domain=$(LANGUAGE) --add-comments --keyword=_ --keyword=N_ --files-from=.\files
  95.  
  96. $(LANGUAGES): files
  97.     $(XGETTEXT) --default-domain=$(PACKAGE) --add-comments --keyword=_ --keyword=N_ --files-from=.\files
  98.     $(MV) $(PACKAGE).po $(PACKAGE).pot
  99.     $(CP) $@.po $@.po.orig
  100.     $(MV) $@.po $@.po.old
  101.     $(MSGMERGE) $@.po.old $(PACKAGE).pot -o $@.po
  102.     $(RM) $@.po.old
  103.  
  104. install:
  105.     if not exist $(INSTALLDIR) $(MKD) $(INSTALLDIR)
  106.     $(CP) $(LANGUAGE).mo $(INSTALLDIR)\$(PACKAGE).mo
  107.  
  108. clean:
  109.     $(RM) *.mo
  110.     $(RM) *.pot
  111.