summaryrefslogtreecommitdiff
path: root/Testing_Reference/Makefile
blob: 1e3b7fc025b5bc22b1911aeb68cd1300ac0fc77c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
PACKAGE = "Testing_Reference"

all: clean clean_ids
	@publican update_pot
	@publican update_po --langs=all
	@publican build --embedtoc --publish --langs=all --formats=html,html-single,pdf
	@for lang in $$(ls -d *-*/); do \
		publican install_book --site_config=../site.cfg --lang=$$lang; \
	done

clean:
	@publican clean

clean_ids:
	@cp -a ../Common_Content/en-US/*.xml en-US/.
	@publican clean_ids
	@sed -i -r \
		-e 's/\t/    /g' \
		-e 's/((\s{4})+)\s*/\1/g' \
		-e 's/\s*$$//g' \
		`find en-US/ -type f -name "*.xml"`

add-language:
	@publican update_pot
	@publican update_po --langs=$(LANGUAGE)