| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
include /usr/share/java/java_defaults.mk |
| 13 |
|
| 14 |
java_compat_level ?= 7 |
| 15 |
export JAVA_COMPAT_LEVEL=$(java_compat_level) |
| 16 |
|
| 17 |
CFLAGS = -Wall -g |
| 18 |
|
| 19 |
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) |
| 20 |
CFLAGS += -O0 |
| 21 |
else |
| 22 |
CFLAGS += -O2 |
| 23 |
endif |
| 24 |
|
| 25 |
configure: configure-stamp |
| 26 |
configure-stamp: |
| 27 |
dh_testdir |
| 28 |
|
| 29 |
|
| 30 |
touch configure-stamp |
| 31 |
|
| 32 |
|
| 33 |
build: build-arch build-indep |
| 34 |
|
| 35 |
build-arch: build-stamp |
| 36 |
|
| 37 |
build-indep: build-stamp |
| 38 |
|
| 39 |
build-stamp: configure-stamp |
| 40 |
dh_testdir |
| 41 |
|
| 42 |
|
| 43 |
$(MAKE) |
| 44 |
|
| 45 |
|
| 46 |
touch $@ |
| 47 |
|
| 48 |
clean: |
| 49 |
dh_testdir |
| 50 |
dh_testroot |
| 51 |
rm -f build-stamp configure-stamp |
| 52 |
|
| 53 |
|
| 54 |
$(MAKE) clean |
| 55 |
|
| 56 |
dh_clean |
| 57 |
|
| 58 |
install: build |
| 59 |
dh_testdir |
| 60 |
dh_testroot |
| 61 |
dh_prep |
| 62 |
dh_installdirs |
| 63 |
|
| 64 |
|
| 65 |
$(MAKE) install DESTDIR=$(CURDIR)/debian/coco-java |
| 66 |
|
| 67 |
|
| 68 |
|
| 69 |
binary-indep: build install |
| 70 |
dh_testdir |
| 71 |
dh_testroot |
| 72 |
dh_installchangelogs |
| 73 |
dh_installdocs |
| 74 |
dh_installexamples |
| 75 |
|
| 76 |
|
| 77 |
|
| 78 |
|
| 79 |
|
| 80 |
|
| 81 |
|
| 82 |
|
| 83 |
|
| 84 |
|
| 85 |
|
| 86 |
dh_installman debian/cocoj.1 |
| 87 |
dh_link |
| 88 |
dh_strip |
| 89 |
dh_strip_nondeterminism |
| 90 |
dh_compress |
| 91 |
dh_fixperms |
| 92 |
|
| 93 |
|
| 94 |
dh_installdeb |
| 95 |
dh_shlibdeps |
| 96 |
dh_gencontrol |
| 97 |
dh_md5sums |
| 98 |
dh_builddeb |
| 99 |
|
| 100 |
|
| 101 |
|
| 102 |
binary-arch: build-indep install |
| 103 |
|
| 104 |
binary: binary-indep binary-arch |
| 105 |
.PHONY: build clean binary-indep binary-arch binary install configure |