use more of javahelper
[debian/freetts] / debian / rules
index 12e9e6bde0a3333269a52ca0546924a57ed447a3..d249843d546aa7feff9a04f3385b29e2bca363a9 100755 (executable)
@@ -9,14 +9,24 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+export JAVA_HOME=/usr/lib/jvm/default-java
+#export CLASSPATH=
+
 %:
        dh  $@
+#      dh  $@ --with javahelper
 
 override_dh_auto_build:
-       ant deploy_bin
+       ln -sf . src
+       ant debian
+
+override_dh_auto_clean:
+       dh_auto_clean
+       rm -f src
 
-#override_dh_auto_install:
-#      cp build/jar/* `pwd`/debian/openrocket/usr/share/java/
+override_dh_auto_install:
+       jh_installlibs deploy/*.jar
+       jh_installjavadoc javadoc
 #      printf '#!/bin/sh\njava -jar /usr/share/java/%s\n' \
 #              "`/bin/ls build/jar`" > \
 #              `pwd`/debian/openrocket/usr/bin/openrocket