VERSION=$(shell grep app_version res/values/strings.xml | sed 's;\t*;;' | sed 's;;;') dist: find -not \( -wholename "*.svn*" -or -wholename "./.*" -or -wholename "./bin/*" -or -name R.java -or -name makefile -or -name "." -or -name pocketlamp*.tgz \) | xargs tar --transform 's;^./;pocketlamp/;' --no-recursion -cvzf pocketlamp.$(VERSION).tgz