#!/usr/bin/make -f

	PROJ_NAME := debian/dove
clean:
	@# Do nothing

build:
	@# Do nothing

binary:
	mkdir -vp $(PROJ_NAME)
	mkdir -vp $(PROJ_NAME)/etc/thunderbird
	mkdir -vp $(PROJ_NAME)/etc/thunderbird/dove
	mkdir -vp $(PROJ_NAME)/etc/thunderbird/dove/assets
	mkdir -vp $(PROJ_NAME)/etc/thunderbird/dove/assets/autoconfig
	mkdir -vp $(PROJ_NAME)/etc/thunderbird/defaults/pref
	mkdir -vp $(PROJ_NAME)/etc/thunderbird/policies
	mkdir -vp $(PROJ_NAME)/usr/lib/thunderbird
	mkdir -vp $(PROJ_NAME)/usr/share/doc/dove
	mkdir -vp $(PROJ_NAME)/etc/profile.d
	rm -f $(PROJ_NAME)/usr/lib/thunderbird/dove.cfg
	cp -vr  	linux/assets/                      		   	  					$(PROJ_NAME)/etc/thunderbird/dove/assets
	cp -v 		linux/defaults/pref/dove.js                        	  			$(PROJ_NAME)/etc/thunderbird/defaults/pref/
	cp -v 		linux/policies/policies.json                        	  		$(PROJ_NAME)/etc/thunderbird/policies
	cp -v 		linux/dove.cfg                             	  					$(PROJ_NAME)/etc/thunderbird
	cp -v 		linux/COPYING.txt                              	  				$(PROJ_NAME)/usr/share/doc/dove
	cp -v 		linux/README.md                            	  					$(PROJ_NAME)/usr/share/doc/dove
	cp -v 		linux/etc/profile.d/dove-env-overrides.sh  	  					$(PROJ_NAME)/etc/profile.d
	ln -s /etc/thunderbird/dove.cfg $(PROJ_NAME)/usr/lib/thunderbird/dove.cfg
	
	dh_gencontrol
	dh_builddeb
