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
77 # Uncomment one of the lines below or modify it to put the path to your
80 #GETTEXT_PATH = C:/gettext.win32/bin/
81 #GETTEXT_PATH = C:/gettext-0.10.35-w32/win32/Release/
85 # The OLD_PO_FILE_INPUT and OLD_PO_FILE_OUTPUT are for the new GNU gettext
86 # tools 0.10.37, which use a slightly different .po file format that is not
87 # compatible with Solaris (and old gettext implementations) unless these are
88 # set. gettext 0.10.36 will not work!
89 MSGFMT
= OLD_PO_FILE_INPUT
=yes
$(GETTEXT_PATH
)msgfmt
-v
90 XGETTEXT
= OLD_PO_FILE_INPUT
=yes OLD_PO_FILE_OUTPUT
=yes
$(GETTEXT_PATH
)xgettext
91 MSGMERGE
= OLD_PO_FILE_INPUT
=yes OLD_PO_FILE_OUTPUT
=yes
$(GETTEXT_PATH
)msgmerge
103 .SUFFIXES
: .po .mo .pot
104 .PHONY
: first_time
all install clean $(LANGUAGES
)
112 $(XGETTEXT
) --default-domain
=$(LANGUAGE
) \
113 --add-comments
--keyword
=_
--keyword
=N_
$(wildcard ..
/*.c
) ..
/if_perl.xs
$(wildcard ..
/globals.h
)
116 $(XGETTEXT
) --default-domain
=$(PACKAGE
) \
117 --add-comments
--keyword
=_
--keyword
=N_
$(wildcard ..
/*.c
) ..
/if_perl.xs
$(wildcard ..
/globals.h
)
118 $(MV
) $(PACKAGE
).po
$(PACKAGE
).pot
119 $(CP
) $@.po
$@.po.orig
120 $(MV
) $@.po
$@.po.old
121 $(MSGMERGE
) $@.po.old
$(PACKAGE
).pot
-o
$@.po
125 for TARGET in
$(LANGUAGES
); do \
126 $(MKD
) $(VIMRUNTIME
)/lang
/$$TARGET/LC_MESSAGES
; \
127 $(CP
) $$TARGET.mo
$(VIMRUNTIME
)/lang
/$$TARGET/LC_MESSAGES
/$(PACKAGE
).mo
; \