<commit_before>#
# Requires:
#	- go (golang.org) (required on host to build/run, required on target to run)
#		- To add Go support on the Pi, in Raspbian:
#			sudo apt-get install golang
#	- Mercurial (hg) required by "go get":
#		- http://mercurial.selenic.com/wiki/Download, for Mac:
#			sudo port install mercurial
#	- Rebuild in linux/arm support for cross-compiling to the Pi.  On the Mac, this works:
#		cd /usr/local/go/src
#		sudo GOOS=linux GOARCH=arm ./make.bash
#		
#
# Installation layout:
#	- Installed via pip
#		/opt/raspberrystem/ide - IDE server and resources
#		/etc/rstem_ide.conf - IDE config
#		/var/local/raspberrystem/ide/html - top-level html
#		/usr/local/bin/rstem_ide_server - Link to IDE server
#	- Dependency of lesson plans pip install
#	- Depends on raspberrystem pip install
#
PYTHON=python3
SETUP=$(PYTHON) setup.py
PIP=pip-3.2

PI=pi@raspberrypi
RUNONPI=ssh $(SSHFLAGS) -q -t $(PI) "cd rsinstall;"

PACKAGES=github.com/kr/pty code.google.com/p/go.net/websocket

export GOPATH=$(HOME)/tmp/idebuild

# Create version name
DUMMY:=$(shell scripts/version.sh)

# Name must be generated the same way as setup.py
NAME:=$(shell cat NAME)
VER:=$(shell cat VERSION)

IDE_SOURCE_FILES=$(shell git ls-files assets ide.html)
# Final targets
IDE_TAR:=$(NAME)-$(VER).tar.gz
TARGETS=$(IDE_TAR)

# Dependency files
GIT_FILES=$(shell git ls-files)

.PHONY: all is_go_installed $(PACKAGES)

all: $(TARGETS)

#########################################################################
# Prerequisites
#

is_go_installed:
	@which go > /dev/null

$(PACKAGES):<commit_msg>make targets now reports abspath<commit_after>#
# Requires:
#	- go (golang.org) (required on host to build/run, required on target to run)
#		- To add Go support on the Pi, in Raspbian:
#			sudo apt-get install golang
#	- Mercurial (hg) required by "go get":
#		- http://mercurial.selenic.com/wiki/Download, for Mac:
#			sudo port install mercurial
#	- Rebuild in linux/arm support for cross-compiling to the Pi.  On the Mac, this works:
#		cd /usr/local/go/src
#		sudo GOOS=linux GOARCH=arm ./make.bash
#		
#
# Installation layout:
#	- Installed via pip
#		/opt/raspberrystem/ide - IDE server and resources
#		/etc/rstem_ide.conf - IDE config
#		/var/local/raspberrystem/ide/website - top-level html
#		/usr/local/bin/rstem_ide_server - Link to IDE server
#	- Dependency of lesson plans pip install
#	- Depends on raspberrystem pip install
#
PYTHON=python3
SETUP=$(PYTHON) setup.py
PIP=pip-3.2

PI=pi@raspberrypi
RUNONPI=ssh $(SSHFLAGS) -q -t $(PI) "cd rsinstall;"

PACKAGES=github.com/kr/pty code.google.com/p/go.net/websocket

export GOPATH=$(HOME)/tmp/idebuild

# Create version name
DUMMY:=$(shell scripts/version.sh)

# Name must be generated the same way as setup.py
NAME:=$(shell cat NAME)
VER:=$(shell cat VERSION)

IDE_SOURCE_FILES=$(shell git ls-files assets ide.html)
# Final targets
IDE_TAR:=$(abspath $(NAME)-$(VER).tar.gz)
TARGETS=$(IDE_TAR)

# Dependency files
GIT_FILES=$(shell git ls-files)

.PHONY: all is_go_installed $(PACKAGES)

all: $(TARGETS)

#########################################################################
# Prerequisites
#

is_go_installed:
	@which go > /dev/null

$(PACKAGES):
{'fraction_non_alphanumeric': 0.17183098591549295, 'fraction_numerical': 0.0018779342723004694, 'mean_word_length': 4.326666666666667, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 5, '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': '1382441', 'n_tokens_mistral': 1235, 'n_tokens_neox': 1151, 'n_words': 312}