rules 670 Bytes
Newer Older
1 2
#!/usr/bin/make -f

Jeremy Bicha's avatar
Jeremy Bicha committed
3 4
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND= -Wl,-O1 -Wl,--as-needed
5

Jeremy Bicha's avatar
Jeremy Bicha committed
6
%:
7
	dh $@ --parallel --with autoreconf,python2
8

Jeremy Bicha's avatar
Jeremy Bicha committed
9
override_dh_auto-clean:
10
	dh_auto_clean
11 12
	rm -r bin/org
	rm linkgrammar-*.jar
13

Jeremy Bicha's avatar
Jeremy Bicha committed
14
override_dh_auto_configure:
15 16 17 18
	dh_auto_configure -- \
		--disable-static \
		--enable-pthreads \
		--enable-python-bindings
Jeremy Bicha's avatar
Jeremy Bicha committed
19

20 21 22
override_dh_autoreconf:
	dh_autoreconf --as-needed

23 24
override_dh_install:
	rm -f debian/tmp/usr/lib/python*/dist-packages/*/*.la
25
	dh_install -pliblink-grammar-java \
Jeremy Bicha's avatar
Jeremy Bicha committed
26 27
		usr/lib/$(DEB_HOST_MULTIARCH)/liblink-grammar-java.so* \
		usr/lib/$(DEB_HOST_MULTIARCH)/jni
28
	dh_install
29

Jeremy Bicha's avatar
Jeremy Bicha committed
30
override_dh_auto_test: