view Makefile @ 93:3a58bc86cd6f

remove 5250 configuration
author Carl Byington <carl@five-ten-sg.com>
date Mon, 16 Jun 2014 16:50:13 -0700
parents 1aff8d06d5ef
children 524f9d41e046
line wrap: on
line source

#mc40 is "On Device Storage"
#tc55 is "Internal Storage"

style=release
dest=/run/user/1000/gvfs/mtp*/*torage/Download
apk='bin/510Connectbot-$(style).apk'

all:
	hg pull; hg update
	make builder

builder:
	rm -rf gen bin
	ndk-build clean; V=1 ndk-build
	android update project -p . -t android-16
	ant $(style)

genkey:
	keytool -genkeypair -keystore 510Connectbot.keystore -alias 510Connectbot -dname "cn=510Connectbot , ou=510Connectbot, o=five-ten-sg, o=com, c=US" -keyalg RSA -keysize 2048 -validity 10000

docs:
	(cd xml; make)

install:
	cp $(apk) $(dest)
	ls -al $(apk) $(dest)


indentc:
	indent --line-length100 \
		   --brace-indent4 \
		   --braces-on-if-line \
		   --braces-on-func-def-line \
		   --case-brace-indentation4 \
		   --case-indentation4 \
		   --comment-indentation60 \
		   --cuddle-else \
		   --declaration-comment-column60 \
		   --no-tabs \
		   -nbbo \
		   -npcs \
		   -nprs \
		   -npsl \
		   -saf -sai -saw \
		   -i4 \
		   $(shell find . -iname *.c -o -iname *.h -o -iname *.cpp)


indentjava:
	astyle --style=java \
		--attach-namespaces \
		--attach-classes \
		--indent-classes \
		--indent-switches \
		--indent-cases \
		--indent-namespaces \
		--break-blocks \
		--pad-oper \
		--pad-header \
		--unpad-paren \
		--delete-empty-lines \
		--align-pointer=type \
		--break-closing-brackets \
		--keep-one-line-blocks \
		--keep-one-line-statements \
		--convert-tabs \
		--break-after-logical \
		--mode=java \
		   $(shell find . -iname *.java | grep -v /gen/)

internaldocs:
	doxygen