<commit_before># Copyright (C) 2010 Palo Alto Research Center, Inc.
#
# This work is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License version 2 as published by the
# Free Software Foundation.
# This work is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE.
#


#
# Make all the Java jars and put them in "obj" directory.
# pjproject-1.4.5 is configured for the host platform and built,
# but not installed anywhere.

SUBDIRS = external CCNx-Android-Lib CCNx-Android-Services apps

.PHONY: subdirs $(SUBDIRS_clean) $(SUBDIRS) $(SUBDIRS_distclean) _always

default all: verifykits $(SUBDIRS)


# 
# Do we really want to instead just build it if it doesn't exist?
#
checkccnjar:
	@test -f ../javasrc/ccn.jar || (echo Missing ccn.jar.  Please make CCNx javasrc before the Android port; \
	exit 1;)

CCNx-Android-Lib: checkccnjar

# Since we've moved to a modern NDK, we should consider turning external projects
# into NDK library module projects, and these can then simply be added as modules 
# during the JNI build phase.  We'll have to still deal with external downloads 
# because of export control handling.
CCNx-Android-Services: checkccnjar external

apps: 

subdirs: $(SUBDIRS)

# Build externals without parallism
$(SUBDIRS): 
	for i in $(SUBDIRS); do \
		(cd "$$i" && pwd && $(MAKE) -j 1) || exit 1; \
	done

install uninstall:
	(cd CCNx-Android-Services && $(MAKE) $@)
	(cd apps && $(MAKE) $@)

honeycomb:
	(cd external && $(MAKE) -j 1)
	(cd CCNx-Android-Lib && $(MAKE) $@)
	(cd CCNx-Android-Services && $(MAKE) $@)
	(cd apps && $(MAKE) $@)

clean distclean:
	for i in $(SUBDIRS); do \
		(cd "$$i" && pwd && $(MAKE) $@) || exit 1; \
	done
	@rm -f _always

documentation: _always
	doxygen

dist-docs: _always
	doxygen Doxyfile.dist

# If we don't have the right environment settings, skip the build.
# Do this as a warning (Why a warning, shouldn't this be a build failure?)
# We should probably consider verifying the versions of the kits but this 
# isn't an inherently clear item to verify since none of the tools provide
# clues as to version, so it may make sense to look in the configuration 
# files that come in the kits for these clues
verifykits: _always
	@test -d "$(ANDROID_NDK)" && test -d "$(ANDROID_SDK)" || (echo; \
	echo '*******************************************************'; \
	echo '    Missing either ANDROID_SDK or ANDROID_NDK,'; \
	echo '           NOT building Android targets.'; \
	echo; \
	echo '  ANDROID_SDK should point to a R16 or later SDK'; \
	echo '     with Android 2.1 (android-7) installed.'; \<commit_msg>refs #100780 Fix a few bugs in definition of honeycomb build<commit_after># Copyright (C) 2010-2012 Palo Alto Research Center, Inc.
#
# This work is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License version 2 as published by the
# Free Software Foundation.
# This work is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE.
#


#
# Make all the Java jars and put them in "obj" directory.
# pjproject-1.4.5 is configured for the host platform and built,
# but not installed anywhere.

SUBDIRS = external CCNx-Android-Lib CCNx-Android-Services apps

.PHONY: subdirs $(SUBDIRS_clean) $(SUBDIRS) $(SUBDIRS_distclean) _always

default all: verifykits $(SUBDIRS)


# 
# Do we really want to instead just build it if it doesn't exist?
#
checkccnjar:
	@test -f ../javasrc/ccn.jar || (echo Missing ccn.jar.  Please make CCNx javasrc before the Android port; \
	exit 1;)

CCNx-Android-Lib: checkccnjar

# Since we've moved to a modern NDK, we should consider turning external projects
# into NDK library module projects, and these can then simply be added as modules 
# during the JNI build phase.  We'll have to still deal with external downloads 
# because of export control handling.
CCNx-Android-Services: checkccnjar external

apps: 

subdirs: $(SUBDIRS)

# Build externals without parallism
$(SUBDIRS): 
	for i in $(SUBDIRS); do \
		(cd "$$i" && pwd && $(MAKE) -j 1) || exit 1; \
	done

install uninstall:
	(cd CCNx-Android-Services && $(MAKE) $@)
	(cd apps && $(MAKE) $@)

honeycomb:
	(cd external && $(MAKE) -j 1)
	(cd CCNx-Android-Lib && $(MAKE))
	(cd CCNx-Android-Services && $(MAKE) $@)
	(cd apps && $(MAKE) $@)

clean distclean:
	for i in $(SUBDIRS); do \
		(cd "$$i" && pwd && $(MAKE) $@) || exit 1; \
	done
	@rm -f _always

documentation: _always
	doxygen

dist-docs: _always
	doxygen Doxyfile.dist

# If we don't have the right environment settings, skip the build.
# Do this as a warning (Why a warning, shouldn't this be a build failure?)
# We should probably consider verifying the versions of the kits but this 
# isn't an inherently clear item to verify since none of the tools provide
# clues as to version, so it may make sense to look in the configuration 
# files that come in the kits for these clues
verifykits: _always
	@test -d "$(ANDROID_NDK)" && test -d "$(ANDROID_SDK)" || (echo; \
	echo '*******************************************************'; \
	echo '    Missing either ANDROID_SDK or ANDROID_NDK,'; \
	echo '           NOT building Android targets.'; \
	echo; \
	echo '  ANDROID_SDK should point to a R16 or later SDK'; \
	echo '     with Android 2.1 (android-7) installed.'; \
{'fraction_non_alphanumeric': 0.12275285999636826, 'fraction_numerical': 0.00835300526602506, 'mean_word_length': 3.870026525198939, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1598107', 'n_tokens_mistral': 1855, 'n_tokens_neox': 1720, 'n_words': 744}