Commits

Anonymous committed 6fdb4da

use /_template/ in neorg-doc, railgun-doc and railgun-doc-ja.
note that railgun-doc and railgun-doc-ja cannot be build because of the
trouble with the plot directive.

Comments (0)

Files changed (1)

 	rstspreadsheet-doc copy-rstspreadsheet-doc \
 	update-rstspreadsheet-doc pull-copy
 
+PYTHONPATH=$(shell pwd)/railgun:$(shell echo "$${PYTHONPATH}")
 
 ## build
 
 	cd $@ && python setup.py build_ext -i
 
 railgun-doc: railgun
-	cd railgun/doc/source && \
-		rm -f _templates && \
-		ln -s __templates _templates
-	make --directory=$@/tests/ext/
-	PYTHONPATH="`pwd`/railgun:$PYTHONPATH" \
-		cd $@/doc/ && make html
+	rm -rf railgun/doc/source/_templates
+	ln -s -t railgun/doc/source ../../../_templates/
+	cd $@/doc/ && PYTHONPATH=$(PYTHONPATH) make html
 
 railgun-doc-ja: railgun
-	cd railgun-doc-ja/source && \
-		rm -f _templates && \
-		ln -s __templates _templates
-	PYTHONPATH="`pwd`/railgun:${PYTHONPATH}" \
-		make --directory=$@ html
+	rm -rf railgun-doc-ja/source/_templates
+	ln -s -t railgun-doc-ja/source/ ../../_templates/
+	cd $@ && PYTHONPATH=${PYTHONPATH} make html
 
 neorg-doc: neorg
-	cd $</doc/source && \
-		rm -f _templates && \
-		ln -s __templates _templates
+	rm -rf $</doc/source/_templates
+	ln -s -t $</doc/source/ ../../../_templates/
 	make --directory=$</doc html
 
 rstspreadsheet-doc:
 	rm -rf tkf.bitbucket.org/railgun-doc
 	cp -r railgun/doc/build/html tkf.bitbucket.org/railgun-doc
 
-copy-railgun-doc-ja: railgun
+copy-railgun-doc-ja:
+	rm -rf tkf.bitbucket.org/railgun-doc-ja
 	cp -r railgun-doc-ja/build/html tkf.bitbucket.org/railgun-doc-ja
 
 copy-neorg-doc: