#!/usr/bin/make -f

#export DH_VERBOSE=1

export DEB_CFLAGS_MAINT_APPEND = -pipe -Wall
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--no-undefined -Wl,--as-needed


%:
	dh $@ --parallel

override_dh_auto_build:
	dh_auto_build
	dh_auto_build -- docs

override_dh_auto_install:
	dh_auto_install
	dh_auto_install -- install-docs

override_dh_auto_clean:
	rm -f src/SDL_stretch.pc.in src/SDL_stretch.pc src/SDL_stretch-uninstalled.pc
        # Make clean doesn't remove the docs, so we do manually
	rm -f doc/SDL_stretch.spec
	rm -f doc/*.xml doc/*.dxml doc/*.html doc/*.ar doc/*.spec doc/*.old
	dh_auto_clean
