summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authormikesamuel <mikesamuel@ad8eed46-c659-4a31-e19d-951d88f54425>2011-03-11 05:10:16 +0000
committermikesamuel <mikesamuel@ad8eed46-c659-4a31-e19d-951d88f54425>2011-03-11 05:10:16 +0000
commit04fec67bccd1004fba68e662ba9709747aa65d30 (patch)
tree1b7fde31c3b9200eaf249761e899f63fff9e59e5 /Makefile
parentb60793850840a0dcbdcf6c9825540cef3dac026b (diff)
downloadsanitizer-04fec67bccd1004fba68e662ba9709747aa65d30.tar.gz
Added an example to mirror the AntiSamy slashdot use case
git-svn-id: http://owasp-java-html-sanitizer.googlecode.com/svn/trunk@22 ad8eed46-c659-4a31-e19d-951d88f54425
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 6c152ca..77994bc 100644
--- a/Makefile
+++ b/Makefile
@@ -17,6 +17,12 @@ out/classes.tstamp: out src/main/org/owasp/html/*.java
$$(echo $^ | tr ' ' '\n' | egrep '\.java$$')
touch out/classes.tstamp
+examples: out/examples.tstamp
+out/examples.tstamp: out/classes.tstamp src/main/org/owasp/html/examples/*.java
+ javac -g ${JAVAC_FLAGS} -classpath ${CLASSPATH}:out -d out \
+ $$(echo $^ | tr ' ' '\n' | egrep '\.java$$')
+ touch out/examples.tstamp
+
# Depends on all java files under tests.
tests: out/tests.tstamp out/org/owasp/html/alltests
out/tests.tstamp: out out/classes.tstamp src/tests/org/owasp/html/*.java
@@ -48,7 +54,7 @@ out/java.hprof.txt: out/tests.tstamp
# Builds the documentation.
javadoc: out/javadoc.tstamp
-out/javadoc.tstamp: src/main/org/owasp/html/*.java
+out/javadoc.tstamp: src/main/org/owasp/html/*.java src/main/org/owasp/html/examples/*.java
mkdir -p out/javadoc
javadoc -locale en -d out/javadoc \
-classpath ${CLASSPATH} \