b4e78103421da73c134e4b28124c50969d959f6c
[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         printf '#!/bin/sh\njava -jar /usr/share/java/%s\n' \
21                 "`/bin/ls build/jar`" > \
22                 `pwd`/debian/openrocket/usr/bin/openrocket
23
24 override_dh_installman:
25         dh_installman debian/openrocket.1