#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

%:
	dh $@

build:
	sh -c 'echo "Path: $$PATH"'
	flutter build linux

binary: build
	debian/rules build
	dh_testroot
	dh_prep
	dh_installdirs
	dh_auto_install --destdir=debian/aspiro/
	dh_install
	dh_installdocs
	dh_installchangelogs
	dh_installexamples
	dh_installman
	dh_installcatalogs
	dh_installcron
	dh_installdebconf
	dh_installemacsen
	dh_installifupdown
	dh_installinfo
	dh_installinit
	dh_installtmpfiles
	dh_installsystemd
	dh_installsystemduser
	dh_installmenu
	dh_installmime
	dh_installmodules
	dh_installlogcheck
	dh_installlogrotate
	dh_installpam
	dh_installppp
	dh_installudev
	dh_installgsettings
	dh_installinitramfs
	dh_installalternatives
	dh_bugfiles
	dh_ucf
	dh_lintian
	dh_icons
	dh_perl
	dh_usrlocal
	dh_link
	dh_installwm
	dh_installxfonts
	dh_strip_nondeterminism
	dh_compress
	dh_fixperms
	dh_missing
	#dh_dwz -a
	dh_strip -a -O--no-strip
	dh_makeshlibs -a
	dh_shlibdeps -a
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb
	

clean:
	sh -c '[ ! -d build ] || rm -r build'
	sh -c '[ ! -d linux/flutter/ephemeral ] || rm -r linux/flutter/ephemeral'
	sh -c '[ ! -d .dart_tool ] || rm -r .dart_tool'
	sh -c '[ ! -d .packages ] || rm -r .packages'
	sh -c '[ ! -d .flutter-plugins ] || rm -r .flutter-plugins'
	sh -c '[ ! -f .flutter-plugins-dependencies ] || rm .flutter-plugins-dependencies'
	dh clean
