<commit_before>#SHELL := /bin/bash

all: install_deps compile

clean:
	rm -rf build/
	rm -f $(GOPATH)/bin/todd-server
	rm -f $(GOPATH)/bin/todd
	rm -f $(GOPATH)/bin/todd-agent

build: compile
	docker build -t mierdin/todd -f Dockerfile .
	rm -rf build/

compile: install_deps clean
	mkdir -p build/
	mkdir -p assets/
	$(GOPATH)/bin/go-bindata -o assets/assets_unpack.go -pkg="assets" agent/...
	cd server && $(GOPATH)/bin/godep go build -o ../build/todd-server
	cd client && $(GOPATH)/bin/godep go build -o ../build/todd
	cd agent && $(GOPATH)/bin/godep go build -o ../build/todd-agent

fmt:
	go fmt github.com/mierdin/todd/...

configureenv:
	mkdir -p /etc/todd
	cp -f etc/agent.cfg /etc/todd/agent.cfg
	cp -r etc/server.cfg /etc/todd/server.cfg
	mkdir -p /opt/todd/agent/assets/factcollectors
	mkdir -p /opt/todd/server/assets/factcollectors
	mkdir -p /opt/todd/agent/assets/testlets
	mkdir -p /opt/todd/server/assets/testlets
	chmod -R 777 /opt/todd

install: install_deps configureenv compile
	cp -f build/todd-server /usr/bin
	cp -f build/todd /usr/bin
	cp -f build/todd-agent /usr/bin<commit_msg>More makefile changes<commit_after>#SHELL := /bin/bash

all: install_deps compile

clean:
	rm -rf build/
	rm -f $(GOPATH)/bin/todd-server
	rm -f $(GOPATH)/bin/todd
	rm -f $(GOPATH)/bin/todd-agent

build: compile
	docker build -t mierdin/todd -f Dockerfile .
	rm -rf build/

compile: install_deps clean
	mkdir -p build/
	mkdir -p assets/
	$(GOPATH)/bin/go-bindata -o assets/assets_unpack.go -pkg="assets" agent/...
	cd server && $(GOPATH)/bin/godep go build -o ../build/todd-server
	cd client && $(GOPATH)/bin/godep go build -o ../build/todd
	cd agent && $(GOPATH)/bin/godep go build -o ../build/todd-agent

fmt:
	go fmt github.com/mierdin/todd/...

configureenv:
	mkdir -p /etc/todd
	cp -f etc/agent.cfg /etc/todd/agent.cfg
	cp -r etc/server.cfg /etc/todd/server.cfg
	mkdir -p /opt/todd/agent/assets/factcollectors
	mkdir -p /opt/todd/server/assets/factcollectors
	mkdir -p /opt/todd/agent/assets/testlets
	mkdir -p /opt/todd/server/assets/testlets
	chmod -R 777 /opt/todd

install: configureenv
	cp -f build/todd-server /usr/bin
	cp -f build/todd /usr/bin
	cp -f build/todd-agent /usr/bin
{'fraction_non_alphanumeric': 0.15244180739388408, 'fraction_numerical': 0.0027384755819260614, 'mean_word_length': 3.03683241252302, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7667827', 'n_tokens_mistral': 939, 'n_tokens_neox': 894, 'n_words': 223}