#!/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

CFLAGS = -Wall -g

ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
	CFLAGS += -O0
else
	CFLAGS += -O2
endif

configure: configure-stamp
configure-stamp:
	dh_testdir
	# Add here commands to configure the package.

	touch configure-stamp

build: build-stamp

build-stamp: configure-stamp
	dh_testdir
	touch build-stamp

clean:
	dh_testdir
	dh_testroot
	rm -f build-stamp configure-stamp
	dh_clean

install: build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs

	# ======================================================
	#$(MAKE) DESTDIR="$(CURDIR)/debian/yosmapa" install
	mkdir -p "$(CURDIR)/debian/yosmapa"

#	mkdir -p "$(CURDIR)/debian/yosmapa/opt/yosmapa/maps/"
	cp -a "src/opt/yosmapa/maps/http:__maps.gstatic.com_mapfiles_place_api_icons_generic_business-71.png" "$(CURDIR)/debian/yosmapa/opt/yosmapa/maps/http:__maps.gstatic.com_mapfiles_place_api_icons_generic_business-71.png"
	mkdir -p "$(CURDIR)/debian/yosmapa/opt/yosmapa/maps/"
	cp -a "src/opt/yosmapa/maps/http:__maps.gstatic.com_mapfiles_place_api_icons_restaurant-71.png" "$(CURDIR)/debian/yosmapa/opt/yosmapa/maps/http:__maps.gstatic.com_mapfiles_place_api_icons_restaurant-71.png"
	mkdir -p "$(CURDIR)/debian/yosmapa/opt/yosmapa/maps/"
	cp -a "src/opt/yosmapa/maps/ico_igla_32_32.png" "$(CURDIR)/debian/yosmapa/opt/yosmapa/maps/ico_igla_32_32.png"
	mkdir -p "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/"
	cp -a "src/opt/yosmapa/plugins/POI.png" "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/POI.png"
	mkdir -p "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/"
	cp -a "src/opt/yosmapa/plugins/POI.py" "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/POI.py"
	mkdir -p "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/"
	cp -a "src/opt/yosmapa/plugins/dont_photo_geotags.py" "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/dont_photo_geotags.py"
	mkdir -p "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/"
	cp -a "src/opt/yosmapa/plugins/dont_test.py" "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/dont_test.py"
	mkdir -p "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/"
	cp -a "src/opt/yosmapa/plugins/fotoradary.png" "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/fotoradary.png"
	mkdir -p "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/"
	cp -a "src/opt/yosmapa/plugins/fotoradary.py" "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/fotoradary.py"
	mkdir -p "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/"
	cp -a "src/opt/yosmapa/plugins/fotoradary.txt" "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/fotoradary.txt"
	mkdir -p "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/"
	cp -a "src/opt/yosmapa/plugins/google_geonames.py" "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/google_geonames.py"
	mkdir -p "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/"
	cp -a "src/opt/yosmapa/plugins/google_link.py" "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/google_link.py"
	mkdir -p "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/"
	cp -a "src/opt/yosmapa/plugins/google_maps.png" "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/google_maps.png"
	mkdir -p "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/"
	cp -a "src/opt/yosmapa/plugins/google_places.png" "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/google_places.png"
	mkdir -p "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/"
	cp -a "src/opt/yosmapa/plugins/google_places.py" "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/google_places.py"
	mkdir -p "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/"
	cp -a "src/opt/yosmapa/plugins/google_routesearch.png" "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/google_routesearch.png"
	mkdir -p "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/"
	cp -a "src/opt/yosmapa/plugins/google_routesearch.py" "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/google_routesearch.py"
	mkdir -p "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/"
	cp -a "src/opt/yosmapa/plugins/gpx.png" "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/gpx.png"
	mkdir -p "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/"
	cp -a "src/opt/yosmapa/plugins/gpx_record.png" "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/gpx_record.png"
	mkdir -p "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/"
	cp -a "src/opt/yosmapa/plugins/gpx_tracks.py" "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/gpx_tracks.py"
	mkdir -p "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/"
	cp -a "src/opt/yosmapa/plugins/ico_cele_32_32.png" "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/ico_cele_32_32.png"
	mkdir -p "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/"
	cp -a "src/opt/yosmapa/plugins/ico_comment_g.png" "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/ico_comment_g.png"
	mkdir -p "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/"
	cp -a "src/opt/yosmapa/plugins/ico_comment_m.png" "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/ico_comment_m.png"
	mkdir -p "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/"
	cp -a "src/opt/yosmapa/plugins/ico_gpx_r_128_128.png" "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/ico_gpx_r_128_128.png"
	mkdir -p "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/"
	cp -a "src/opt/yosmapa/plugins/ico_navi2_128_128.png" "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/ico_navi2_128_128.png"
	mkdir -p "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/"
	cp -a "src/opt/yosmapa/plugins/ico_navi2_32_32.png" "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/ico_navi2_32_32.png"
	mkdir -p "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/"
	cp -a "src/opt/yosmapa/plugins/ico_profile_128_128.png" "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/ico_profile_128_128.png"
	mkdir -p "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/"
	cp -a "src/opt/yosmapa/plugins/ico_profile_32_32.png" "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/ico_profile_32_32.png"
	mkdir -p "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/"
	cp -a "src/opt/yosmapa/plugins/ico_taskSwitch_32_32.png" "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/ico_taskSwitch_32_32.png"
	mkdir -p "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/"
	cp -a "src/opt/yosmapa/plugins/ico_turn_32_32.png" "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/ico_turn_32_32.png"
	mkdir -p "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/"
	cp -a "src/opt/yosmapa/plugins/ico_turn_keep_left_32_32.png" "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/ico_turn_keep_left_32_32.png"
	mkdir -p "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/"
	cp -a "src/opt/yosmapa/plugins/ico_turn_keep_right_32_32.png" "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/ico_turn_keep_right_32_32.png"
	mkdir -p "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/"
	cp -a "src/opt/yosmapa/plugins/ico_turn_left_32_32.png" "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/ico_turn_left_32_32.png"
	mkdir -p "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/"
	cp -a "src/opt/yosmapa/plugins/ico_turn_right_32_32.png" "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/ico_turn_right_32_32.png"
	mkdir -p "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/"
	cp -a "src/opt/yosmapa/plugins/ico_turn_sleft_32_32.png" "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/ico_turn_sleft_32_32.png"
	mkdir -p "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/"
	cp -a "src/opt/yosmapa/plugins/ico_turn_sright_32_32.png" "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/ico_turn_sright_32_32.png"
	mkdir -p "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/"
	cp -a "src/opt/yosmapa/plugins/ico_turn_u_32_32.png" "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/ico_turn_u_32_32.png"
	mkdir -p "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/"
	cp -a "src/opt/yosmapa/plugins/nominatim.png" "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/nominatim.png"
	mkdir -p "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/"
	cp -a "src/opt/yosmapa/plugins/nominatim_geonames.py" "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/nominatim_geonames.py"
	mkdir -p "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/"
	cp -a "src/opt/yosmapa/plugins/plugin_proto.py" "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/plugin_proto.py"
	mkdir -p "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/"
	cp -a "src/opt/yosmapa/plugins/powered-by-google-on-black.png" "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/powered-by-google-on-black.png"
	mkdir -p "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/"
	cp -a "src/opt/yosmapa/plugins/rcspot.png" "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/rcspot.png"
	mkdir -p "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/"
	cp -a "src/opt/yosmapa/plugins/rcspot_eventy.py" "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/rcspot_eventy.py"
	mkdir -p "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/"
	cp -a "src/opt/yosmapa/plugins/results_view.py" "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/results_view.py"
	mkdir -p "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/"
	cp -a "src/opt/yosmapa/plugins/tangogps-friend.png" "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/tangogps-friend.png"
	mkdir -p "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/"
	cp -a "src/opt/yosmapa/plugins/tangogps_friend.py" "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/tangogps_friend.py"
	mkdir -p "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/"
	cp -a "src/opt/yosmapa/plugins/tangogps_ico.png" "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/tangogps_ico.png"
	mkdir -p "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/"
	cp -a "src/opt/yosmapa/plugins/task_switcher.py" "$(CURDIR)/debian/yosmapa/opt/yosmapa/plugins/task_switcher.py"
	mkdir -p "$(CURDIR)/debian/yosmapa/opt/yosmapa/imgs/"
	cp -a "src/opt/yosmapa/imgs/i_gps.png" "$(CURDIR)/debian/yosmapa/opt/yosmapa/imgs/i_gps.png"
	mkdir -p "$(CURDIR)/debian/yosmapa/opt/yosmapa/imgs/"
	cp -a "src/opt/yosmapa/imgs/i_gps_on.png" "$(CURDIR)/debian/yosmapa/opt/yosmapa/imgs/i_gps_on.png"
	mkdir -p "$(CURDIR)/debian/yosmapa/opt/yosmapa/imgs/"
	cp -a "src/opt/yosmapa/imgs/i_min.png" "$(CURDIR)/debian/yosmapa/opt/yosmapa/imgs/i_min.png"
	mkdir -p "$(CURDIR)/debian/yosmapa/opt/yosmapa/imgs/"
	cp -a "src/opt/yosmapa/imgs/i_plus.png" "$(CURDIR)/debian/yosmapa/opt/yosmapa/imgs/i_plus.png"
	mkdir -p "$(CURDIR)/debian/yosmapa/opt/yosmapa/imgs/"
	cp -a "src/opt/yosmapa/imgs/ico_clean_48_48.png" "$(CURDIR)/debian/yosmapa/opt/yosmapa/imgs/ico_clean_48_48.png"
	mkdir -p "$(CURDIR)/debian/yosmapa/opt/yosmapa/imgs/"
	cp -a "src/opt/yosmapa/imgs/ico_config2_128_128.png" "$(CURDIR)/debian/yosmapa/opt/yosmapa/imgs/ico_config2_128_128.png"
	mkdir -p "$(CURDIR)/debian/yosmapa/opt/yosmapa/imgs/"
	cp -a "src/opt/yosmapa/imgs/ico_config2_64_64.png" "$(CURDIR)/debian/yosmapa/opt/yosmapa/imgs/ico_config2_64_64.png"
	mkdir -p "$(CURDIR)/debian/yosmapa/opt/yosmapa/imgs/"
	cp -a "src/opt/yosmapa/imgs/ico_find2_128_128.png" "$(CURDIR)/debian/yosmapa/opt/yosmapa/imgs/ico_find2_128_128.png"
	mkdir -p "$(CURDIR)/debian/yosmapa/opt/yosmapa/imgs/"
	cp -a "src/opt/yosmapa/imgs/ico_find2_48_48.png" "$(CURDIR)/debian/yosmapa/opt/yosmapa/imgs/ico_find2_48_48.png"
	mkdir -p "$(CURDIR)/debian/yosmapa/opt/yosmapa/imgs/"
	cp -a "src/opt/yosmapa/imgs/ico_map2_128_128.png" "$(CURDIR)/debian/yosmapa/opt/yosmapa/imgs/ico_map2_128_128.png"
	mkdir -p "$(CURDIR)/debian/yosmapa/opt/yosmapa/imgs/"
	cp -a "src/opt/yosmapa/imgs/ico_map2_32_32.png" "$(CURDIR)/debian/yosmapa/opt/yosmapa/imgs/ico_map2_32_32.png"
	mkdir -p "$(CURDIR)/debian/yosmapa/usr/share/applications/hildon/"
	cp -a "src/usr/share/applications/hildon/yosmapa.desktop" "$(CURDIR)/debian/yosmapa/usr/share/applications/hildon/yosmapa.desktop"
	mkdir -p "$(CURDIR)/debian/yosmapa/opt/yosmapa/"
	cp -a "src/opt/yosmapa/BuildPluginsList.py" "$(CURDIR)/debian/yosmapa/opt/yosmapa/BuildPluginsList.py"
	mkdir -p "$(CURDIR)/debian/yosmapa/opt/yosmapa/"
	cp -a "src/opt/yosmapa/GpsManager.py" "$(CURDIR)/debian/yosmapa/opt/yosmapa/GpsManager.py"
	mkdir -p "$(CURDIR)/debian/yosmapa/opt/yosmapa/"
	cp -a "src/opt/yosmapa/h_UI_detailsWindow.py" "$(CURDIR)/debian/yosmapa/opt/yosmapa/h_UI_detailsWindow.py"
	mkdir -p "$(CURDIR)/debian/yosmapa/opt/yosmapa/"
	cp -a "src/opt/yosmapa/h_UI_mainMenuDialog.py" "$(CURDIR)/debian/yosmapa/opt/yosmapa/h_UI_mainMenuDialog.py"
	mkdir -p "$(CURDIR)/debian/yosmapa/opt/yosmapa/"
	cp -a "src/opt/yosmapa/h_UI_searchDialog.py" "$(CURDIR)/debian/yosmapa/opt/yosmapa/h_UI_searchDialog.py"
	mkdir -p "$(CURDIR)/debian/yosmapa/opt/yosmapa/"
	cp -a "src/opt/yosmapa/h_UI_selectContact.py" "$(CURDIR)/debian/yosmapa/opt/yosmapa/h_UI_selectContact.py"
	mkdir -p "$(CURDIR)/debian/yosmapa/opt/yosmapa/"
	cp -a "src/opt/yosmapa/h_UI_welcomeScreen.py" "$(CURDIR)/debian/yosmapa/opt/yosmapa/h_UI_welcomeScreen.py"
	mkdir -p "$(CURDIR)/debian/yosmapa/opt/yosmapa/"
	cp -a "src/opt/yosmapa/h_config_sl.py" "$(CURDIR)/debian/yosmapa/opt/yosmapa/h_config_sl.py"
	mkdir -p "$(CURDIR)/debian/yosmapa/opt/yosmapa/"
	cp -a "src/opt/yosmapa/h_deb.py" "$(CURDIR)/debian/yosmapa/opt/yosmapa/h_deb.py"
	mkdir -p "$(CURDIR)/debian/yosmapa/opt/yosmapa/"
	cp -a "src/opt/yosmapa/portrait.py" "$(CURDIR)/debian/yosmapa/opt/yosmapa/portrait.py"
	mkdir -p "$(CURDIR)/debian/yosmapa/opt/yosmapa/"
	cp -a "src/opt/yosmapa/yosmapa.py" "$(CURDIR)/debian/yosmapa/opt/yosmapa/yosmapa.py"
	mkdir -p "$(CURDIR)/debian/yosmapa/opt/yosmapa/"
	cp -a "src/opt/yosmapa/yosmapa.sh" "$(CURDIR)/debian/yosmapa/opt/yosmapa/yosmapa.sh"
	mkdir -p "$(CURDIR)/debian/yosmapa/usr/share/icons/hicolor/scalable/hildon/"
	cp -a "src/usr/share/icons/hicolor/scalable/hildon/yosmapa.png" "$(CURDIR)/debian/yosmapa/usr/share/icons/hicolor/scalable/hildon/yosmapa.png"

	# ======================================================

# Build architecture-independent files here.
binary-indep: build install
# We have nothing to do by default.

# Build architecture-dependent files here.
binary-arch: build install
	dh_testdir
	dh_testroot
	dh_installchangelogs debian/changelog
	dh_installdocs
	dh_installexamples
#	dh_install
#	dh_installmenu
#	dh_installdebconf
#	dh_installlogrotate
#	dh_installemacsen
#	dh_installpam
#	dh_installmime
#	dh_python
#	dh_installinit
#	dh_installcron
#	dh_installinfo
	dh_installman
	dh_link
	dh_strip
	dh_compress
	dh_fixperms
#	dh_perl
#	dh_makeshlibs
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install configure
