diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..09ff77c --- /dev/null +++ b/Makefile @@ -0,0 +1,30 @@ +.POSIX: + +all: out/html/devel/index.html out/text/develguide.txt \ + out/html/install/index.html out/text/installguide.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/ + +install: + @mkdir -p "${DESTDIR}"/usr/share/doc/adelie-handbook/ + @cp -r out/* "${DESTDIR}"/usr/share/doc/adelie-handbook/ |