<commit_before># Makefile for the NSLU2 Linux development system
# Licensed under the GPL v2 or later

# Change these if you are unfortunate enough to have a split net personality.
SVN_USER ?= ${USER}
CVS_USER ?= ${USER}

.PHONY: all
all: update build

.PHONY: build
build: build-unslung build-openslug build-optware

.PHONY: setup
setup: setup-master setup-bitbake setup-openembedded setup-optware

.PHONY: setup-developer
setup-developer: setup-master setup-bitbake setup-openembedded setup-optware-developer

.PHONY: update
update: update-master update-bitbake update-openembedded update-optware

.PHONY: clobber
clobber: clobber-optware clobber-openembedded clobber-bitbake

.PHONY: unslung build-unslung
unslung build-unslung: unslung/Makefile bitbake/bin/bitbake openembedded/conf/machine/nslu2.conf
	( cd unslung ; make )

.PHONY: openslug build-openslug
openslug build-openslug: openslug/Makefile bitbake/bin/bitbake openembedded/conf/machine/nslu2.conf
	( cd openslug ; make )

.PHONY: optware build-optware
optware build-optware: build-optware-nslu2 build-optware-wl500g

.PHONY: optware-nslu2 build-optware-nslu2
optware-nslu2 build-optware-nslu2: optware/nslu2/Makefile
	( cd optware/nslu2 ; make )

.PHONY: optware-wl500g build-optware-wl500g
optware-wl500g build-optware-wl500g: optware/wl500g/Makefile
	( cd optware/wl500g ; make )

.PHONY: setup-monotone
setup-monotone monotone/nslu2-linux.db:
	[ -e monotone/nslu2-linux.db ] || ( mkdir -p monotone && monotone -d monotone/nslu2-linux.db db init )
	( monotone -d monotone/nslu2-linux.db pull monotone.vanille.de org.openembedded.* )
	( monotone -d monotone/nslu2-linux.db unset database default-server )
	( monotone -d monotone/nslu2-linux.db unset database default-include-pattern )
	( monotone -d monotone/nslu2-linux.db pull monotone.nslu2-linux.org org.openembedded.* org.nslu2-linux.* )
	# Above may be supplemented  by following someday
	# It currently *requires* monotone 0.21, or it will fail with 
	# a mysterious sounding database error.
	# wget http://www.nslu2-linux.org/monotone/nslu2-linux.db.gz -O monotone/nslu2-linux.db.gz
	# or<commit_msg>Added make autoclean to the optware builds<commit_after># Makefile for the NSLU2 Linux development system
# Licensed under the GPL v2 or later

# Change these if you are unfortunate enough to have a split net personality.
SVN_USER ?= ${USER}
CVS_USER ?= ${USER}

.PHONY: all
all: update build

.PHONY: build
build: build-unslung build-openslug build-optware

.PHONY: setup
setup: setup-master setup-bitbake setup-openembedded setup-optware

.PHONY: setup-developer
setup-developer: setup-master setup-bitbake setup-openembedded setup-optware-developer

.PHONY: update
update: update-master update-bitbake update-openembedded update-optware

.PHONY: clobber
clobber: clobber-optware clobber-openembedded clobber-bitbake

.PHONY: unslung build-unslung
unslung build-unslung: unslung/Makefile bitbake/bin/bitbake openembedded/conf/machine/nslu2.conf
	( cd unslung ; make )

.PHONY: openslug build-openslug
openslug build-openslug: openslug/Makefile bitbake/bin/bitbake openembedded/conf/machine/nslu2.conf
	( cd openslug ; make )

.PHONY: optware build-optware
optware build-optware: build-optware-nslu2 build-optware-wl500g

.PHONY: optware-nslu2 build-optware-nslu2
optware-nslu2 build-optware-nslu2: optware/nslu2/Makefile
	( cd optware/nslu2 ; make autoclean ; make )

.PHONY: optware-wl500g build-optware-wl500g
optware-wl500g build-optware-wl500g: optware/wl500g/Makefile
	( cd optware/wl500g ; make autoclean ; make )

.PHONY: setup-monotone
setup-monotone monotone/nslu2-linux.db:
	[ -e monotone/nslu2-linux.db ] || ( mkdir -p monotone && monotone -d monotone/nslu2-linux.db db init )
	( monotone -d monotone/nslu2-linux.db pull monotone.vanille.de org.openembedded.* )
	( monotone -d monotone/nslu2-linux.db unset database default-server )
	( monotone -d monotone/nslu2-linux.db unset database default-include-pattern )
	( monotone -d monotone/nslu2-linux.db pull monotone.nslu2-linux.org org.openembedded.* org.nslu2-linux.* )
	# Above may be supplemented  by following someday
	# It currently *requires* monotone 0.21, or it will fail with 
	# a mysterious sounding database error.
	# wget http://www.nslu2-linux.org/monotone/nslu2-linux.db.gz -O monotone/nslu2-linux.db.gz
	# or
{'fraction_non_alphanumeric': 0.10160055671537926, 'fraction_numerical': 0.02180468568777546, 'mean_word_length': 4.52112676056338, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1801724', 'n_tokens_mistral': 1732, 'n_tokens_neox': 1555, 'n_words': 375}