summaryrefslogblamecommitdiff
path: root/Makefile
blob: 2edb1a0aef67f30e31e8e81f18cf6ab56cc382d3 (plain) (tree)
1
2
3
4
5


                                                        

                                                               






















                                                                                  










                                                                               


                                                                
.POSIX:

all: out/html/devel/index.html out/text/develguide.txt \
	out/html/install/index.html out/text/installguide.txt \
	out/html/porting/index.html out/text/portguide.txt

out/text/develguide.txt: src/devel/*.xml
	@mkdir -p out/text
	@printf 'Developer Guide: Generating text...\n'
	@xmlto txt -o out/text src/devel/develguide.xml

out/html/devel/index.html: src/devel/*.xml src/pretty.css
	@mkdir -p out/html/devel
	@printf 'Developer Guide: Generating HTML...\n'
	@xmlto html -m master.xsl -o out/html/devel src/devel/develguide.xml
	@cp src/pretty.css out/html/devel/

out/text/installguide.txt: src/install/*.xml
	@mkdir -p out/text
	@printf 'Install Guide: Generating text...\n'
	@xmlto txt -o out/text src/install/installguide.xml

out/html/install/index.html: src/install/*.xml src/pretty.css
	@mkdir -p out/html/install
	@printf 'Install Guide: Generating HTML...\n'
	@xmlto html -m master.xsl -o out/html/install src/install/installguide.xml
	@cp src/pretty.css out/html/install/

out/text/portguide.txt: src/porting/*.xml
	@mkdir -p out/text
	@printf 'Porting Guide: Generating text...\n'
	@xmlto txt -o out/text src/porting/portguide.xml

out/html/porting/index.html: src/porting/*.xml src/pretty.css
	@mkdir -p out/html/porting
	@printf 'Porting Guide: Generating HTML...\n'
	@xmlto html -m master.xsl -o out/html/porting src/porting/portguide.xml
	@cp src/pretty.css out/html/porting/

install:
	@mkdir -p "${DESTDIR}"/usr/share/doc/adelie-handbook/
	@cp -r out/* "${DESTDIR}"/usr/share/doc/adelie-handbook/