7d90115169ed0dba2a029c48edd3f08380a51d71
[debian/openrocket] / debian / rules
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3 # Sample debian/rules that uses debhelper.
4 # This file was originally written by Joey Hess and Craig Small.
5 # As a special exception, when this file is copied by dh-make into a
6 # dh-make output file, you may use that output file without restriction.
7 # This special exception was added by Craig Small in version 0.37 of dh-make.
8
9 # Uncomment this to turn on verbose mode.
10 #export DH_VERBOSE=1
11
12 %:
13         dh  $@
14
15 override_dh_auto_build:
16         ant dist-bin
17
18 override_dh_auto_install:
19         cp build/jar/* `pwd`/debian/openrocket/usr/share/java/
20         echo "#!/bin/sh\njava -jar /usr/share/java/`/bin/ls build/jar`" > \
21                 `pwd`/debian/openrocket/usr/bin/openrocket
22
23 override_dh_installman:
24         dh_installman debian/openrocket.1