OLD | NEW |
1 depth = .. | 1 depth = .. |
2 | 2 |
3 ######################## | 3 ######################## |
4 # Documentation build # | 4 # Documentation build # |
5 ######################## | 5 ######################## |
6 | 6 |
7 ############# | 7 ############# |
8 ### Variables | 8 ### Variables |
9 | 9 |
10 NAME = documentation | 10 NAME = documentation |
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 $(outdir)/internals.texi: $(LILYPOND_BINARY) $(INIT_LY_SOURCES) $(SCHEME_SOURCES
) | 309 $(outdir)/internals.texi: $(LILYPOND_BINARY) $(INIT_LY_SOURCES) $(SCHEME_SOURCES
) |
310 $(call ly_progress,Making,$@,) | 310 $(call ly_progress,Making,$@,) |
311 cd $(outdir) && $(buildscript-dir)/run-and-check "$(LILYPOND_BINARY) --v
erbose $(top-src-dir)/ly/generate-documentation" "generate-documentation.log" | 311 cd $(outdir) && $(buildscript-dir)/run-and-check "$(LILYPOND_BINARY) --v
erbose $(top-src-dir)/ly/generate-documentation" "generate-documentation.log" |
312 | 312 |
313 ############################################### | 313 ############################################### |
314 # Documentation and translations maintenance # | 314 # Documentation and translations maintenance # |
315 ############################################### | 315 ############################################### |
316 po-update: | 316 po-update: |
317 $(MAKE) -C po po-update | 317 $(MAKE) -C po po-update |
318 | 318 |
319 all-translations-update: po-update translation-status | |
320 $(foreach lang, $(LANGS), $(MAKE) ISOLANG=$(lang) skeleton-update snippe
t-update &&) true | |
321 | |
322 ifneq ($(NO_COLOR),) | 319 ifneq ($(NO_COLOR),) |
323 CHECK_TRANSLATION_FLAGS = --no-color | 320 CHECK_TRANSLATION_FLAGS = --no-color |
324 endif | 321 endif |
325 | 322 |
326 ifneq ($(ISOLANG),) | 323 ifneq ($(ISOLANG),) |
327 new-lang-dir: | 324 new-lang-dir: |
328 mkdir -p $(ISOLANG)/$(DIR) | 325 mkdir -p $(ISOLANG)/$(DIR) |
329 rm -f $(outdir)/*.*tely $(outdir)/*.*texi | 326 rm -f $(outdir)/*.*tely $(outdir)/*.*texi |
330 $(PYTHON) $(auxscript-dir)/texi-langutils.py -d $(outdir) -l $(ISOLANG)
-o doc.pot --skeleton --gettext $$(cd $(ISOLANG) && ls -1 ../$(DIR).tely ../$(DI
R).texi) | 327 $(PYTHON) $(auxscript-dir)/texi-langutils.py -d $(outdir) -l $(ISOLANG)
-o doc.pot --skeleton --gettext $$(cd $(ISOLANG) && ls -1 ../$(DIR).tely ../$(DI
R).texi) |
331 for i in $$(cd $(outdir) && ls -1 $(DIR).tely $(DIR).texi); do\ | 328 for i in $$(cd $(outdir) && ls -1 $(DIR).tely $(DIR).texi); do\ |
(...skipping 12 matching lines...) Expand all Loading... |
344 if test -z "`ls $(ISOLANG)/included`"; then touch $(ISOLANG)/included/.g
itignore; fi | 341 if test -z "`ls $(ISOLANG)/included`"; then touch $(ISOLANG)/included/.g
itignore; fi |
345 cp fr/GNUmakefile $(ISOLANG) | 342 cp fr/GNUmakefile $(ISOLANG) |
346 sed -i -e 's/ISOLANG *= *fr/ISOLANG = $(ISOLANG)/' $(ISOLANG)/GNUmakefil
e | 343 sed -i -e 's/ISOLANG *= *fr/ISOLANG = $(ISOLANG)/' $(ISOLANG)/GNUmakefil
e |
347 $(foreach i,$(TRANSLATION_DIRS),$(MAKE) new-lang-dir DIR=$(i) &&) : | 344 $(foreach i,$(TRANSLATION_DIRS),$(MAKE) new-lang-dir DIR=$(i) &&) : |
348 msgmerge -U po/lilypond-doc.pot $(outdir)/doc.pot | 345 msgmerge -U po/lilypond-doc.pot $(outdir)/doc.pot |
349 test -e po/$(ISOLANG).po || cp po/lilypond-doc.pot po/$(ISOLANG).po | 346 test -e po/$(ISOLANG).po || cp po/lilypond-doc.pot po/$(ISOLANG).po |
350 @echo "*** Please add a language definition for $(ISOLANG) in python/la
ngdefs.py ***" | 347 @echo "*** Please add a language definition for $(ISOLANG) in python/la
ngdefs.py ***" |
351 | 348 |
352 TRANSLATION_DIRS = web texidocs | 349 TRANSLATION_DIRS = web texidocs |
353 TRANSLATION_FILES = $(shell git ls-files $(ISOLANG) | grep -v GNUmakefile) | 350 TRANSLATION_FILES = $(shell git ls-files $(ISOLANG) | grep -v GNUmakefile) |
354 TEXI_LANGUTIL_FLAGS += --skeleton | |
355 | 351 |
356 TELY_FILES = $(call src-wildcard,$(ISOLANG)/*.tely) | 352 TELY_FILES = $(call src-wildcard,$(ISOLANG)/*.tely) |
357 skeleton-update: | |
358 @echo "$@ has been discontinued" | |
359 @echo "simply copy .texi, .itexi files you want to translate" | |
360 exit 2 | |
361 mkdir -p $(ISOLANG) | |
362 $(PYTHON) $(auxscript-dir)/texi-langutils.py -d $(outdir) -l $(ISOLANG)
$(TEXI_LANGUTIL_FLAGS) $(TELY_FILES:$(ISOLANG)/%.tely=../%.tely) | |
363 $(PYTHON) $(auxscript-dir)/texi-skeleton-update.py $(ISOLANG) $(outdir) | |
364 | 353 |
365 snippet-update: | 354 snippet-update: |
366 $(PYTHON) $(auxscript-dir)/update-snippets.py user $(ISOLANG) '*.itely' | 355 $(PYTHON) $(auxscript-dir)/update-snippets.py user $(ISOLANG) '*.itely' |
367 | 356 |
368 DOCUMENTS_INCLUDES:=-I $(ISOLANG) \ | 357 DOCUMENTS_INCLUDES:=-I $(ISOLANG) \ |
369 -I $(top-build-dir)/Documentation/$(ISOLANG)/out-www \ | 358 -I $(top-build-dir)/Documentation/$(ISOLANG)/out-www \ |
370 -I $(top-src-dir)/Documentation/snippets \ | 359 -I $(top-src-dir)/Documentation/snippets \ |
371 -I $(top-build-dir)/Documentation/out-www \ | 360 -I $(top-build-dir)/Documentation/out-www \ |
372 -I $(top-build-dir)/Documentation/out | 361 -I $(top-build-dir)/Documentation/out |
373 | 362 |
(...skipping 17 matching lines...) Expand all Loading... |
391 | 380 |
392 check-translation: | 381 check-translation: |
393 ISOLANG=$(ISOLANG) $(PYTHON) $(auxscript-dir)/check_translation.py $(CHE
CK_TRANSLATION_FLAGS) $(TRANSLATION_FILES) | 382 ISOLANG=$(ISOLANG) $(PYTHON) $(auxscript-dir)/check_translation.py $(CHE
CK_TRANSLATION_FLAGS) $(TRANSLATION_FILES) |
394 | 383 |
395 update-translation: | 384 update-translation: |
396 ISOLANG=$(ISOLANG) $(PYTHON) $(auxscript-dir)/check_translation.py --upd
ate $(CHECK_TRANSLATION_FLAGS) $(TRANSLATION_FILES) | 385 ISOLANG=$(ISOLANG) $(PYTHON) $(auxscript-dir)/check_translation.py --upd
ate $(CHECK_TRANSLATION_FLAGS) $(TRANSLATION_FILES) |
397 | 386 |
398 # what's it gonna be, boy...tranlationS-/translation- | 387 # what's it gonna be, boy...tranlationS-/translation- |
399 translation-status: | 388 translation-status: |
400 PYTHONPATH=$(top-src-dir)/python:$(top-src-dir)/python/auxiliar $(PYTHON
) $(top-src-dir)/scripts/auxiliar/translations-status.py | 389 PYTHONPATH=$(top-src-dir)/python:$(top-src-dir)/python/auxiliar $(PYTHON
) $(top-src-dir)/scripts/auxiliar/translations-status.py |
OLD | NEW |