diff --git a/debian/rules b/debian/rules
index f3c48560eaa53665728f287d559aeedf7037a8d3..53da2c19372d30bc1046bb76829f5ce186408ceb 100755
--- a/debian/rules
+++ b/debian/rules
@@ -50,7 +50,7 @@ build-indep:
 	dh_prep
 	# The next line is used by KYTV when building from source packages
 	#[ -r jetty/jetty-5.1.15.tgz ] && ln -sf $(CURDIR)/jetty/jetty-5.1.15.tgz $(CURDIR)/apps/jetty/jetty-5.1.15.tgz
-	ant preppkg-linux javadoc
+	ant preppkg-unix javadoc
 	echo router.updateDisabled=true > $(I2P)/router.config
 	mv $(I2P)/runplain.sh $(I2P)/i2prouter-nowrapper
 	-cp -fv /usr/share/tor/geoip $(CURDIR)/pkg-temp/geoip/geoip.txt