#!/usr/bin/make -f
%:
	dh $@

override_dh_auto_build:
	yui-compressor -o event-drag/jquery.event.drag.min.js event-drag/jquery.event.drag.js
	yui-compressor -o event-drop/jquery.event.drop.min.js event-drop/jquery.event.drop.js
	yui-compressor -o easing/jquery.easing.min.js easing/jquery.easing.js
	yui-compressor -o easing/jquery.easing.compatibility.min.js easing/jquery.easing.compatibility.js
	yui-compressor -o galleriffic/js/jquery.galleriffic.min.js galleriffic/js/jquery.galleriffic.js
	yui-compressor -o meiomask/jquery.meiomask.min.js meiomask/jquery.meiomask.js
	yui-compressor -o mousewheel/jquery.mousewheel.min.js mousewheel/jquery.mousewheel.js
	yui-compressor -o jquery-history/jquery.history.min.js jquery-history/jquery.history.js
	yui-compressor -o opacityrollover/jquery.opacityrollover.min.js opacityrollover/jquery.opacityrollover.js
	yui-compressor -o jush/jush.min.js jush/jush.js
	yui-compressor -o jfeed/build/dist/jquery.jfeed.min.js jfeed/build/dist/jquery.jfeed.js
	yui-compressor -o form/jquery.form.min.js form/jquery.form.js
	yui-compressor -o tipsy/src/javascripts/jquery.tipsy.min.js tipsy/src/javascripts/jquery.tipsy.js
	yui-compressor -o fancybox/jquery.fancybox.min.js fancybox/jquery.fancybox.js
	yui-compressor -o cookie/jquery.cookie.min.js cookie/jquery.cookie.js
	yui-compressor -o metadata/jquery.metadata.min.js metadata/jquery.metadata.js
	yui-compressor -o tablesorter/jquery.tablesorter.min.js tablesorter/jquery.tablesorter.js
	yui-compressor -o tablesorter/addons/pager/jquery.tablesorter.pager.min.js tablesorter/addons/pager/jquery.tablesorter.pager.js
	yui-compressor -o treetable/src/jquery.treeTable.min.js treetable/src/jquery.treeTable.js
	yui-compressor -o livequery/jquery.livequery.min.js livequery/jquery.livequery.js
	yui-compressor -o countdown/jquery.countdown.min.js countdown/jquery.countdown.js
	yui-compressor -o resize/jquery.ba-resize.min.js resize/jquery.ba-resize.js
	yui-compressor -o uploadify/jquery.uploadify.min.js uploadify/jquery.uploadify.js
	yui-compressor -o slides/source/slides.min.jquery.js slides/source/slides.jquery.js
	yui-compressor -o fullscreen/fullscreen/jquery.fullscreen.min.js fullscreen/fullscreen/jquery.fullscreen.js

override_dh_installchangelogs:
	dh_installchangelogs --package libjs-jquery-cookie cookie/CHANGELOG.md
	dh_installchangelogs --package libjs-jquery-livequery livequery/ChangeLog.markdown
	dh_installchangelogs --package libjs-jquery-uploadify uploadify/Change\ Log.txt
	dh_installchangelogs --package libjs-jquery-slides slides/README.textile
	dh_installchangelogs

override_dh_auto_clean:
	rm -f event-drag/jquery.event.drag.min.js
	rm -f event-drop/jquery.event.drop.min.js
	rm -f easing/jquery.easing.min.js
	rm -f easing/jquery.easing.compatibility.min.js
	rm -f galleriffic/js/jquery.galleriffic.min.js
	rm -f meiomask/jquery.meiomask.min.js
	rm -f mousewheel/jquery.mousewheel.min.js
	rm -f jquery-history/jquery.history.min.js
	rm -f opacityrollover/jquery.opacityrollover.min.js
	rm -f jush/jush.min.js
	rm -f jfeed/build/dist/jquery.jfeed.min.js
	rm -f form/jquery.form.min.js
	rm -f tipsy/src/javascripts/jquery.tipsy.min.js
	rm -f fancybox/jquery.fancybox.min.js
	rm -f cookie/jquery.cookie.min.js
	rm -f metadata/jquery.metadata.min.js
	rm -f tablesorter/jquery.tablesorter.min.js
	rm -f tablesorter/addons/pager/jquery.tablesorter.pager.min.js
	rm -f treetable/src/jquery.treeTable.min.js
	rm -f livequery/jquery.livequery.min.js
	rm -f countdown/jquery.countdown.min.js
	rm -f resize/jquery.ba-resize.min.js
	rm -f uploadify/jquery.uploadify.min.js
	rm -f slides/source/slides.min.jquery.js
	rm -f fullscreen/fullscreen/jquery.fullscreen.min.js
