diff xml/Makefile @ 360:7eb24880b111

add help files to the web documentation
author Carl Byington <carl@five-ten-sg.com>
date Mon, 04 Aug 2014 08:10:12 -0700
parents 0ce5cc452d02
children d29cce60f393
line wrap: on
line diff
--- a/xml/Makefile	Sun Aug 03 11:26:03 2014 -0700
+++ b/xml/Makefile	Mon Aug 04 08:10:12 2014 -0700
@@ -1,12 +1,14 @@
 ver:=$(shell grep versionName ../AndroidManifest.xml | cut -d'"' -f2)
 pkg:=510Connectbot
+t:=../html
 
 all:
 	sed -e 's/@PACKAGE@/$(pkg)/g' -e 's/@VERSION@/$(ver)/g' <510connectbot.in >510connectbot
 	cat header.xml  510connectbot >510connectbot.xml
 	cat header.sgml 510connectbot >510connectbot.sgml
-	rm -f ../html/*html
-	rm -f ../html/*pdf
-	xmlto        -o ../html xhtml 510connectbot.xml
-	xmlto        -o ../html pdf   510connectbot.xml
+	[ -d $(t) ] || mkdir $(t)
+	rm -f $(t)/*html
+	rm -f $(t)/*pdf
+	xmlto        -o $(t) xhtml 510connectbot.xml
+	xmlto        -o $(t) pdf   510connectbot.xml
 	rm -f 510connectbot.xml 510connectbot.sgml