mirror of
https://github.com/neovim/neovim.git
synced 2025-10-16 23:06:14 +00:00
Fix localization: Fix build: Fix included source files.
Problem : Previous build assumed all *.c files were in parent dir. It only included globals.h, too. Solution : Include all *.c and *.h files under parent dir (including subdirs).
This commit is contained in:

committed by
Justin M. Keyes

parent
cd49b073e9
commit
a0b78b5733
@@ -125,6 +125,8 @@ CHECKFILES = \
|
|||||||
uk.cp1251.ck \
|
uk.cp1251.ck \
|
||||||
zh_CN.cp936.ck
|
zh_CN.cp936.ck
|
||||||
|
|
||||||
|
SOURCE_FILES = $(shell find .. -type f -name '*.[ch]')
|
||||||
|
|
||||||
PACKAGE = nvim
|
PACKAGE = nvim
|
||||||
SHELL = /bin/sh
|
SHELL = /bin/sh
|
||||||
VIM = ../../../build/bin/nvim
|
VIM = ../../../build/bin/nvim
|
||||||
@@ -272,11 +274,11 @@ distclean: clean
|
|||||||
checkclean:
|
checkclean:
|
||||||
rm -f *.ck
|
rm -f *.ck
|
||||||
|
|
||||||
$(PACKAGE).pot: ../*.c ../globals.h
|
$(PACKAGE).pot: $(SOURCE_FILES)
|
||||||
cd ..; $(XGETTEXT) --default-domain=$(PACKAGE) \
|
$(XGETTEXT) --default-domain=$(PACKAGE) \
|
||||||
--add-comments --keyword=_ --keyword=N_ \
|
--add-comments --keyword=_ --keyword=N_ \
|
||||||
*.c globals.h
|
$(SOURCE_FILES)
|
||||||
mv -f ../$(PACKAGE).po $(PACKAGE).pot
|
mv $(PACKAGE).po $(PACKAGE).pot
|
||||||
|
|
||||||
update-po: $(LANGUAGES)
|
update-po: $(LANGUAGES)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user