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

all: clean clean_ids
	publican build --embedtoc --publish --langs=all --formats=html,html-single,pdf
	publican install_book --site_config=../site.cfg --lang=en-US

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