| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
# Uncomment this to turn on verbose mode. |
| 4 |
#export DH_VERBOSE=1 |
| 5 |
|
| 6 |
export JAVA_HOME=/usr/lib/jvm/default-java |
| 7 |
|
| 8 |
%: |
| 9 |
dh $@ --with javahelper --sourcedirectory=dev/build |
| 10 |
|
| 11 |
override_dh_auto_clean: |
| 12 |
## "ant clean" terminates on clean build directory: |
| 13 |
-dh_auto_clean |
| 14 |
|
| 15 |
override_dh_auto_configure: |
| 16 |
mkdir -p lib/json/ |
| 17 |
ln -s /usr/share/javascript/json/json2.js lib/json/json2.js |
| 18 |
dh_auto_configure |
| 19 |
|
| 20 |
override_dh_gencontrol: |
| 21 |
dh_gencontrol -- -Vmy:Built-Using="$(foreach pkg,libjs-json,$(word 2,$(shell dpkg --status $(pkg) | grep Source)) (=$(word 2,$(shell dpkg --status $(pkg) | grep Version))),)" |