9 |
# Uncomment this to turn on verbose mode. |
# Uncomment this to turn on verbose mode. |
10 |
#export DH_VERBOSE=1 |
#export DH_VERBOSE=1 |
11 |
|
|
12 |
|
include /usr/share/quilt/quilt.make |
13 |
|
|
14 |
TARBALL ?= $(shell uscan --force-download --verbose | tail -n 2 | perl -ne 'print $$_ if s;.*(microba-[\d\.]+-full.zip).*;../$$1;') |
TARBALL ?= $(shell uscan --force-download --verbose | tail -n 2 | perl -ne 'print $$_ if s;.*(microba-[\d\.]+-full.zip).*;../$$1;') |
15 |
VERSION ?= $(shell echo $(TARBALL) | perl -pe 's;../microba-(.+)-full.zip;$$1;') |
VERSION ?= $(shell echo $(TARBALL) | perl -pe 's;../microba-(.+)-full.zip;$$1;') |
16 |
TMPDIR := $(shell mktemp -d) |
TMPDIR := $(shell mktemp -d) |
28 |
unzip $(CURDIR)/microba-*-sources.jar -d src |
unzip $(CURDIR)/microba-*-sources.jar -d src |
29 |
unzip $(CURDIR)/microba-*-javadoc.jar -d doc |
unzip $(CURDIR)/microba-*-javadoc.jar -d doc |
30 |
mv $(CURDIR)/src/build.xml $(CURDIR)/ |
mv $(CURDIR)/src/build.xml $(CURDIR)/ |
|
patch < $(CURDIR)/debian/patches/jgraph.patch |
|
31 |
touch configure-stamp |
touch configure-stamp |
32 |
|
|
33 |
|
|
34 |
build: build-stamp |
build: build-stamp |
35 |
|
|
36 |
build-stamp: configure-stamp |
build-stamp: configure-stamp patch |
37 |
dh_testdir |
dh_testdir |
38 |
ant bin_release |
ant bin_release |
39 |
touch $@ |
touch $@ |
40 |
|
|
41 |
clean: |
clean: unpatch |
42 |
dh_testdir |
dh_testdir |
43 |
dh_testroot |
dh_testroot |
44 |
rm -f build-stamp configure-stamp |
rm -f build-stamp configure-stamp |