#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
# export DH_VERBOSE=1

# see FEATURE AREAS in dpkg-buildflags(1)
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# see ENVIRONMENT in dpkg-buildflags(1)
# package maintainers to append CFLAGS
#export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
# package maintainers to append LDFLAGS
export DEB_LDFLAGS_MAINT_APPEND =

%:
	dh $@

execute_before_dh_autoreconf:
	# Prepare subproject source code
	# dpkg unpacks components into directories in the root of the unpacked
	# source package but we need them to be in the subprojects directory
	rm -f subprojects/gvc
	rm -f subprojects/wayland-logout
	rm -f subprojects/wf-json
	mkdir -p subprojects
	ln -s ../gvc subprojects/gvc
	ln -s ../wayland-logout subprojects/wayland-logout
	ln -s ../wf-json subprojects/wf-json

execute_after_dh_auto_clean:
	rm -f subprojects/gvc
	rm -f subprojects/wayland-logout
	rm -f subprojects/wf-json
