summaryrefslogtreecommitdiff
path: root/debian/rules
blob: dd09dd0bf1e9d6a873cb4ad7586dd2af5d7dd45f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/make -f

export CFLAGS := $(shell dpkg-buildflags --get CFLAGS)
export CPPFLAGS := $(shell dpkg-buildflags --get CPPFLAGS)
export LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS)

export ACLOCAL := aclocal -I m4

%:
	dh $@ --with=autoreconf

override_dh_clean:
	[ ! -f buildsys.mk ] || $(MAKE) distclean
	dh_clean

override_dh_installexamples:
	sed -e 's,\(libdir = \$${prefix}/lib\)/.*$$,\1,' < buildsys.mk > buildsys.mk.new
	mv -f buildsys.mk.new buildsys.mk
	dh_installexamples -X.dep

override_dh_compress:
	dh_compress -Xusr/share/doc/libmowgli-dev/examples

override_dh_strip:
	dh_strip --dbg-package=libmowgli2-dbg

.PHONY: override_dh_clean override_dh_installexamples override_dh_compress override_dh_strip