1 # Makefile for the Vim message translations for Cygwin
2 # by Tony Mechelynck <antoine.mechelynck@skynet.be>
3 # after Make_ming.mak by
4 # Eduardo F. Amatria <eferna1@platea.pntic.mec.es>
6 # Read the README_ming.txt file before using it.
8 # Use at your own risk but with care, it could even kill your canary.
12 VIMRUNTIME
= ..
/..
/runtime
83 # Uncomment one of the lines below or modify it to put the path to your
86 #GETTEXT_PATH = C:/gettext.win32/bin/
87 #GETTEXT_PATH = C:/gettext-0.10.35-w32/win32/Release/
91 # The OLD_PO_FILE_INPUT and OLD_PO_FILE_OUTPUT are for the new GNU gettext
92 # tools 0.10.37, which use a slightly different .po file format that is not
93 # compatible with Solaris (and old gettext implementations) unless these are
94 # set. gettext 0.10.36 will not work!
95 MSGFMT
= OLD_PO_FILE_INPUT
=yes
$(GETTEXT_PATH
)msgfmt
-v
96 XGETTEXT
= OLD_PO_FILE_INPUT
=yes OLD_PO_FILE_OUTPUT
=yes
$(GETTEXT_PATH
)xgettext
97 MSGMERGE
= OLD_PO_FILE_INPUT
=yes OLD_PO_FILE_OUTPUT
=yes
$(GETTEXT_PATH
)msgmerge
109 .SUFFIXES
: .po .mo .pot
110 .PHONY
: first_time
all install clean $(LANGUAGES
)
118 $(XGETTEXT
) --default-domain
=$(LANGUAGE
) \
119 --add-comments
--keyword
=_
--keyword
=N_
$(wildcard ..
/*.c
) ..
/if_perl.xs
$(wildcard ..
/globals.h
)
122 $(XGETTEXT
) --default-domain
=$(PACKAGE
) \
123 --add-comments
--keyword
=_
--keyword
=N_
$(wildcard ..
/*.c
) ..
/if_perl.xs
$(wildcard ..
/globals.h
)
124 $(MV
) $(PACKAGE
).po
$(PACKAGE
).pot
125 $(CP
) $@.po
$@.po.orig
126 $(MV
) $@.po
$@.po.old
127 $(MSGMERGE
) $@.po.old
$(PACKAGE
).pot
-o
$@.po
131 for TARGET in
$(LANGUAGES
); do \
132 $(MKD
) $(VIMRUNTIME
)/lang
/$$TARGET/LC_MESSAGES
; \
133 $(CP
) $$TARGET.mo
$(VIMRUNTIME
)/lang
/$$TARGET/LC_MESSAGES
/$(PACKAGE
).mo
; \