APP=UpWithPhp
SNAP=/zooty/downloads/my-web-pages/template/book/files
STORE=/zooty/appstore
PUBLISH=/zooty/downloads/my-web-pages/template/software/upwithphp/
FMT=%Y-%m-%d-%H-%M

build::
	ant debug
	rm -f $(STORE)/$(APP)-debug.apk $(PUBLISH)/$(APP)-debug.apk
	cp bin/$(APP)-debug.apk $(STORE)
	cp bin/$(APP)-debug.apk $(PUBLISH)

logcat::
	adb logcat 'UpWithPhpActivity:*' 'UploadFileToPhp:*' 'Profiles:*' '*:S'

clean::
	ant clean

snapshot::
	-ant clean
	cd .. ; tar cf - $(APP) | bzip2 -9 > \
	           $(SNAP)/$(APP)-`date +$(FMT)`.tar.bz2
