<commit_before>.PHONY: test

ROGUEC_SRC = $(shell find Source/RogueC | grep .rogue)
ROGUEC_FLAGS = -std=c++11 -fno-strict-aliasing

all: roguec

remake: touch_roguec roguec

debug: libraries
	@echo -------------------------------------------------------------------------------
	@echo "Recompiling RogueC.rogue -> RogueC.cpp with --debug..."
	@echo -------------------------------------------------------------------------------
	cd Source/RogueC && mkdir -p Build
	cd Source/RogueC && roguec RogueC.rogue --main --output=Build/RogueC --debug
	mkdir -p Programs
	$(CXX) $(ROGUEC_FLAGS) Source/RogueC/Build/RogueC.cpp -o Programs/RogueC/roguec

roguec: bootstrap_roguec /usr/local/bin /usr/local/bin/roguec libraries Source/RogueC/Build/RogueC.cpp Programs/RogueC/roguec

touch_roguec:
	touch Source/RogueC/RogueC.rogue

bootstrap_roguec:
	@if [ ! -f "Programs/RogueC/roguec" ]; \
	then \
	  echo -------------------------------------------------------------------------------; \
	  echo Compiling Programs/RogueC/roguec from C++ source...; \
	  echo -------------------------------------------------------------------------------; \
	  echo $(CXX) -Wall $(ROGUEC_FLAGS) Source/RogueC/Build/RogueC.cpp -o Programs/RogueC/roguec; \
	  mkdir -p Programs/RogueC; \
	  $(CXX) $(ROGUEC_FLAGS) Source/RogueC/Build/RogueC.cpp -o Programs/RogueC/roguec; \
	fi;

Source/RogueC/Build/RogueC.cpp: $(ROGUEC_SRC)
	@echo -------------------------------------------------------------------------------
	@echo "Recompiling RogueC.rogue -> RogueC.cpp..."
	@echo -------------------------------------------------------------------------------
	cd Source/RogueC && mkdir -p Build
	cd Source/RogueC && roguec RogueC.rogue --main --output=Build/RogueC

Programs/RogueC/roguec: Source/RogueC/Build/RogueC.cpp
	@echo -------------------------------------------------------------------------------
	@echo "Recompiling RogueC.cpp -> Programs/RogueC/roguec..."
	@echo -------------------------------------------------------------------------------
	mkdir -p Programs
	$(CXX) $(ROGUEC_FLAGS) Source/RogueC/Build/RogueC.cpp -o Programs/RogueC/roguec

libraries:
	@mkdir -p Programs/RogueC
	@if [ $$(rsync -rtv --delete --exclude=.*.sw? --dry-run Source/Libraries Programs/RogueC | wc -l) -gt 4 ]; \
	then \
	  echo "==== Updating Libraries ===="; \
		rsync -rtv --delete --exclude=.*.sw? Source/Libraries Programs/RogueC | tail -n +2 | (tac 2> /dev/null || tail -r) | tail -n +4 | (tac 2> /dev/null || tail -r); \
	fi

libs: libraries

if:
	echo $(COPY_COUNT)

/usr/local/bin:
	sudo mkdir -p /usr/local/bin
	sudo chgrp admin /usr/local /usr/local/bin
	sudo chown $$USER /usr/local/bin


/usr/local/bin/roguec:
	@echo -------------------------------------------------------------------------------
	@echo Creating /usr/local/bin/roguec linked to Programs/RogueC/roguec
	@echo -------------------------------------------------------------------------------
	printf "%s\nexec \"%s/Programs/RogueC/roguec\" \"%c@\"\n" '#!/bin/sh' `pwd` '$$' > /usr/local/bin/roguec
	chmod a+x /usr/local/bin/roguec
	@echo
	@echo You can execute the following as a simple test:
	@echo
	@echo    println '"Hello World!"' > Hello.rogue
	@eco     roguec Hello.rogue --execute
	@echo

test:
	roguec Test.rogue --execute --debug

x2:
	make remake
	sleep 1
	make remake

x3:
	make remake
	sleep 1
	make remake
	sleep 1
	make remake

revert:
	git checkout Source/RogueC/Build && rm -f Programs/RogueC/roguec
	make

clean:
	rm -rf Programs/RogueC
	rm -f /usr/local/bin/roguec
	rm -f Hello.cpp
	rm -f Hello.h
	rm -f ./a.out
	rm -f ./hello
<commit_msg>Makefile: Fix typo<commit_after>.PHONY: test

ROGUEC_SRC = $(shell find Source/RogueC | grep .rogue)
ROGUEC_FLAGS = -std=c++11 -fno-strict-aliasing

all: roguec

remake: touch_roguec roguec

debug: libraries
	@echo -------------------------------------------------------------------------------
	@echo "Recompiling RogueC.rogue -> RogueC.cpp with --debug..."
	@echo -------------------------------------------------------------------------------
	cd Source/RogueC && mkdir -p Build
	cd Source/RogueC && roguec RogueC.rogue --main --output=Build/RogueC --debug
	mkdir -p Programs
	$(CXX) $(ROGUEC_FLAGS) Source/RogueC/Build/RogueC.cpp -o Programs/RogueC/roguec

roguec: bootstrap_roguec /usr/local/bin /usr/local/bin/roguec libraries Source/RogueC/Build/RogueC.cpp Programs/RogueC/roguec

touch_roguec:
	touch Source/RogueC/RogueC.rogue

bootstrap_roguec:
	@if [ ! -f "Programs/RogueC/roguec" ]; \
	then \
	  echo -------------------------------------------------------------------------------; \
	  echo Compiling Programs/RogueC/roguec from C++ source...; \
	  echo -------------------------------------------------------------------------------; \
	  echo $(CXX) -Wall $(ROGUEC_FLAGS) Source/RogueC/Build/RogueC.cpp -o Programs/RogueC/roguec; \
	  mkdir -p Programs/RogueC; \
	  $(CXX) $(ROGUEC_FLAGS) Source/RogueC/Build/RogueC.cpp -o Programs/RogueC/roguec; \
	fi;

Source/RogueC/Build/RogueC.cpp: $(ROGUEC_SRC)
	@echo -------------------------------------------------------------------------------
	@echo "Recompiling RogueC.rogue -> RogueC.cpp..."
	@echo -------------------------------------------------------------------------------
	cd Source/RogueC && mkdir -p Build
	cd Source/RogueC && roguec RogueC.rogue --main --output=Build/RogueC

Programs/RogueC/roguec: Source/RogueC/Build/RogueC.cpp
	@echo -------------------------------------------------------------------------------
	@echo "Recompiling RogueC.cpp -> Programs/RogueC/roguec..."
	@echo -------------------------------------------------------------------------------
	mkdir -p Programs
	$(CXX) $(ROGUEC_FLAGS) Source/RogueC/Build/RogueC.cpp -o Programs/RogueC/roguec

libraries:
	@mkdir -p Programs/RogueC
	@if [ $$(rsync -rtv --delete --exclude=.*.sw? --dry-run Source/Libraries Programs/RogueC | wc -l) -gt 4 ]; \
	then \
	  echo "==== Updating Libraries ===="; \
		rsync -rtv --delete --exclude=.*.sw? Source/Libraries Programs/RogueC | tail -n +2 | (tac 2> /dev/null || tail -r) | tail -n +4 | (tac 2> /dev/null || tail -r); \
	fi

libs: libraries

if:
	echo $(COPY_COUNT)

/usr/local/bin:
	sudo mkdir -p /usr/local/bin
	sudo chgrp admin /usr/local /usr/local/bin
	sudo chown $$USER /usr/local/bin


/usr/local/bin/roguec:
	@echo -------------------------------------------------------------------------------
	@echo Creating /usr/local/bin/roguec linked to Programs/RogueC/roguec
	@echo -------------------------------------------------------------------------------
	printf "%s\nexec \"%s/Programs/RogueC/roguec\" \"%c@\"\n" '#!/bin/sh' `pwd` '$$' > /usr/local/bin/roguec
	chmod a+x /usr/local/bin/roguec
	@echo
	@echo You can execute the following as a simple test:
	@echo
	@echo    println '"Hello World!"' > Hello.rogue
	@echo    roguec Hello.rogue --execute
	@echo

test:
	roguec Test.rogue --execute --debug

x2:
	make remake
	sleep 1
	make remake

x3:
	make remake
	sleep 1
	make remake
	sleep 1
	make remake

revert:
	git checkout Source/RogueC/Build && rm -f Programs/RogueC/roguec
	make

clean:
	rm -rf Programs/RogueC
	rm -f /usr/local/bin/roguec
	rm -f Hello.cpp
	rm -f Hello.h
	rm -f ./a.out
	rm -f ./hello

{'fraction_non_alphanumeric': 0.3388061778210658, 'fraction_numerical': 0.0033393627382774455, 'mean_word_length': 1.4667124227865478, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 17, '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': '7329040', 'n_tokens_mistral': 2501, 'n_tokens_neox': 2370, 'n_words': 548}