Question about packaging a Java-Application(JAR)

Paul Hummer paul at eventuallyanyway.com
Mon Mar 24 15:28:38 GMT 2008


> I want to package a JAR-Application which doesn't need to be compiled or things like that. All which has to be done is copying the JAR to /usr/local/share/java and creating a symlink to it in /usr/local/bin . As dependencie we need a java-jre...
> But I have a problem with how the rules has to look because dpkg-buildpackage always wants to execute some make and clean rules also if I have non specified in the rules file.
Now I'm not mentor, and am still learning a lot about the packaging
process, but no one's replied quite yet, so I thought I'd take a whack
at it.  Why not just add a dummy clean target to the rules file, so it
looks like this:

#!/usr/bin/make -f

binary-indep: 
	dh_install -i
	dh_installchangelogs -i ChangeLog.txt
	dh_installdocs -i
	dh_installman -i
	dh_installmenu -i
	dh_compress -i
	dh_desktop -i
	dh_fixperms -i
	dh_installdeb -i
	dh_gencontrol -i
	dh_md5sums -i
	dh_builddeb -i

binary-arch:

PHONY: binary-indep binary-arch

clean:



More information about the Ubuntu-motu-mentors mailing list