1 # Makefile for the Vim message translations for mingw32
3 # Eduardo F. Amatria <eferna1@platea.pntic.mec.es>
5 # Read the README_ming.txt file before using it.
7 # Use at your own risk but with care, it could even kill your canary.
9 # Previous to all you must have the environment variable LANGUAGE set to your
10 # language (xx) and add it to the next three lines.
63 # Uncomment one of the lines below or modify it to put the path to your
64 # gettex binaries; I use the first
65 #GETTEXT_PATH = C:/gettext.win32/bin/
66 #GETTEXT_PATH = C:/gettext-0.10.35-w32/win32/Release/
67 #GETTEXT_PATH = C:/cygwin/bin/
69 MSGFMT
= $(GETTEXT_PATH
)msgfmt
70 XGETTEXT
= $(GETTEXT_PATH
)xgettext
71 MSGMERGE
= $(GETTEXT_PATH
)msgmerge
79 .SUFFIXES
: .po .mo .pot
80 .PHONY
: first_time
all install clean $(LANGUAGES
)
88 $(XGETTEXT
) --default-domain
=$(LANGUAGE
) \
89 --add-comments
--keyword
=_
--keyword
=N_
$(wildcard ..
/*.c
) ..
/if_perl.xs
$(wildcard ..
/globals.h
)
92 $(XGETTEXT
) --default-domain
=$(PACKAGE
) \
93 --add-comments
--keyword
=_
--keyword
=N_
$(wildcard ..
/*.c
) ..
/if_perl.xs
$(wildcard ..
/globals.h
)
94 $(MV
) $(PACKAGE
).po
$(PACKAGE
).pot
95 $(CP
) $@.po
$@.po.orig
97 $(MSGMERGE
) $@.po.old
$(PACKAGE
).pot
-o
$@.po
101 $(MKD
) $(VIMRUNTIME
)\lang\
$(LANGUAGE
)
102 $(MKD
) $(VIMRUNTIME
)\lang\
$(LANGUAGE
)\LC_MESSAGES
103 $(CP
) $(LANGUAGE
).mo
$(VIMRUNTIME
)\lang\
$(LANGUAGE
)\LC_MESSAGES\
$(PACKAGE
).mo