debian/rules
author Sam Lantinga <slouken@libsdl.org>
Sun, 03 Nov 2013 11:34:03 -0800
changeset 7906 19f5760dc1a7
parent 6889 09bc9fbe147e
permissions -rwxr-xr-x
Fixed bug 2180 - debian/rules: Makefiles should use tabs Joseph Carter Whitespace in a makefile is consequential. In fact, it's part of the syntax. And at least a few versions of make puke on Makefiles with lines indented with spaces, not tabs. Obviously GNU make used on Debianish systems is not strictly among them, or this would fail. Even so, I cannot resist the urge to pedantically fix this, if only to get rid of the bright syntax error red coloration in vim. :)

#!/usr/bin/make -f

DEB_HOST_ARCH_CPU ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_CPU)
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

confflags = --disable-rpath --disable-video-directfb \
            --disable-nas --disable-esd --disable-arts \
            --disable-alsa-shared --disable-pulseaudio-shared \
            --disable-x11-shared

%:
	dh $@ --parallel

override_dh_auto_configure:
	dh_auto_configure -Bbuilddir/all -- $(confflags)

override_dh_auto_build:
	dh_auto_build -Bbuilddir/all
	tar czf debian/examples.tar.gz test

override_dh_auto_install:
	dh_auto_install -Bbuilddir/all

override_dh_auto_clean:
	dh_auto_clean -Bbuilddir/all
	rm -f debian/examples.tar.gz

override_dh_install:
	dh_install --remaining-packages --fail-missing -XlibSDL2.la

override_dh_installexamples:
	dh_installexamples -plibsdl2-dev debian/examples.tar.gz
	dh_installexamples --remaining-packages

override_dh_link:
	# to address lintian warning
	# W: libsdl2-2.0-0: dev-pkg-without-shlib-symlink usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0.0.0 usr/lib/x86_64-linux-gnu/libSDL2-2.0.so
	dh_link -plibsdl2-dev usr/lib/$(DEB_HOST_MULTIARCH)/libSDL2-2.0.so.0.0.0 usr/lib/$(DEB_HOST_MULTIARCH)/libSDL2-2.0.so

override_dh_strip:
	dh_strip --dbg-package=libsdl2-dbg