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 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
|
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--no-undefined
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk
confflags := --disable-silent-rules \
--prefix=/usr \
--libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH) \
$(NULL)
confflags += $(shell dpkg-buildflags --export=configure)
%:
dh $@
override_dh_auto_configure:
NOCONFIGURE=1 ./autogen.sh
dh_auto_configure -- $(confflags)
override_dh_install:
rm -rf debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libxwiimote.la
rm -rf debian/tmp/usr/share/doc/*
dh_install
override_dh_auto_clean:
rm -rf Makefile.in \
build-aux \
aclocal.m4 \
config.h.in \
config.log \
configure \
m4/libtool.m4 \
m4/ltoptions.m4 \
m4/ltsugar.m4 \
m4/ltversion.m4 \
m4/lt~obsolete.m4 \
lib/.libs \
xwiikeymap \
xwiidump \
xwiishow \
.libs \
tools/.dirstamp \
tools/*.o \
lib/*.o \
lib/*.lo \
Makefile \
config.h \
onfig.log \
config.status \
libtool \
libxwiimote.la \
libxwiimote.pc \
stamp-h1
dh_auto_clean
|