summaryrefslogtreecommitdiff
path: root/Architecture_and_Design/Makefile
blob: b8b9a4da98cf27c045694e8e59fefe1f94339897 (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
26
27
28
29
30
PACKAGE = "Architecture_and_Design"

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/.
	@cp -a ../Common_Content/en-US/images/*.png en-US/images/.
	@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"`

# Additional quick build targets
pdf: clean clean_ids
	@publican build --embedtoc --publish --langs=en-US --formats=pdf

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