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.
69 # Uncomment one of the lines below or modify it to put the path to your
70 # gettex binaries; I use the first
71 #GETTEXT_PATH = C:/gettext.win32/bin/
72 #GETTEXT_PATH = C:/gettext-0.10.35-w32/win32/Release/
73 #GETTEXT_PATH = C:/cygwin/bin/
75 MSGFMT
= $(GETTEXT_PATH
)msgfmt
76 XGETTEXT
= $(GETTEXT_PATH
)xgettext
77 MSGMERGE
= $(GETTEXT_PATH
)msgmerge
85 .SUFFIXES
: .po .mo .pot
86 .PHONY
: first_time
all install clean $(LANGUAGES
)
94 $(XGETTEXT
) --default-domain
=$(LANGUAGE
) \
95 --add-comments
--keyword
=_
--keyword
=N_
$(wildcard ..
/*.c
) ..
/if_perl.xs
$(wildcard ..
/globals.h
)
98 $(XGETTEXT
) --default-domain
=$(PACKAGE
) \
99 --add-comments
--keyword
=_
--keyword
=N_
$(wildcard ..
/*.c
) ..
/if_perl.xs
$(wildcard ..
/globals.h
)
100 $(MV
) $(PACKAGE
).po
$(PACKAGE
).pot
101 $(CP
) $@.po
$@.po.orig
102 $(MV
) $@.po
$@.po.old
103 $(MSGMERGE
) $@.po.old
$(PACKAGE
).pot
-o
$@.po
107 $(MKD
) $(VIMRUNTIME
)\lang\
$(LANGUAGE
)
108 $(MKD
) $(VIMRUNTIME
)\lang\
$(LANGUAGE
)\LC_MESSAGES
109 $(CP
) $(LANGUAGE
).mo
$(VIMRUNTIME
)\lang\
$(LANGUAGE
)\LC_MESSAGES\
$(PACKAGE
).mo