# HG changeset patch
# User Jose Quinteiro <moin@quinteiro.org>
# Date 1235629469 28800
# Node ID 60ad58a95c237a136bb00b750412a203d55d8968
# Parent  a306904a36208a357ecd1dc00667bd1b921bc96a
Build TWikiDrawPlugin from source

diff -r a306904a3620 -r 60ad58a95c23 Makefile
--- a/Makefile	Tue Feb 24 10:08:55 2009 +0100
+++ b/Makefile	Wed Feb 25 22:24:29 2009 -0800
@@ -8,7 +8,7 @@
 testwiki := ./tests/wiki
 share := ./wiki
 
-all:
+all: twikidraw
 	python setup.py build
 
 install-docs:
@@ -65,6 +65,13 @@
 	cd $(share) ; rm -rf underlay
 	cp -a $(testwiki)/underlay $(share)/
 	
+twikidraw:
+ifdef BUILD_TWIKIDRAW
+	ant -f contrib/TWikiDrawPlugin/build.xml -Ddest.home=../../wiki/htdocs/applets/TWikiDrawPlugin
+else
+	@echo Set BUILD_TWIKIDRAW in your environment if you want to build the TWikiDraw plugin from source
+endif
+
 dist:
 	-rm MANIFEST
 	python setup.py sdist
@@ -109,5 +116,5 @@
 
 .PHONY: all dist install-docs check-tabs epydoc underlay patchlevel \
 	check-i18n update update-underlay test testwiki clean \
-	clean-testwiki clean-pyc
+	clean-testwiki clean-pyc twikidraw
 
