<commit_before>all: ROSV_Joystick

FLAGS=-Wall -O2
CC=g++

ROSV_Joystick: JoyStick.o parson.o main.o TCP_Client.o
	$(CC) $(FLAGS) JoyStick.o parson.o TCP_Client.o main.o -o ROSV_Joystick

main.o: main.cpp
	$(CC) -c $(FLAGS) main.cpp

JoyStick.o: JoyStick.cpp JoyStick.hpp
	$(CC) -c $(FLAGS) JoyStick.cpp

parson.o: parson.c parson.h
	$(CC) -c $(FLAGS) parson.c

TCP_Client.o: TCP_Client.cpp TCP_Client.hpp
	$(CC) -c $(FLAGS) TCP_Client.cpp

style: *.cpp *.c *.h *.hpp
	astyle -A4 -s2 *.c *.cpp *.h *.hpp
	rm *.orig

install:
	install ROSV_Joystick.json /etc
	touch /var/log/ROSV_Joystick	
	install ROSV_Joystick /usr/local/bin
	install ROSV_Joystick.sh /etc/init.d
	update-rc.d ROSV_Joystick.sh defaults 98 02
	cp ROSV_Logrotate /etc/logrotate.d
	
uninstall: 
	rm /usr/local/bin/ROSV_Joystick
	rm /etc/ROSV_Joystick.json
	update-rc.d -f ROSV_Joystick.sh remove
	rm /etc/init.d/ROSV_Joystick.sh
	rm /etc/logrotate.d/ROSV_Logrotate

clean:
	rm -rf *o *~ ROSV_Joystick
<commit_msg>Changed system so program doesn't start upon boot<commit_after>all: ROSV_Joystick

FLAGS=-Wall -O2
CC=g++

ROSV_Joystick: JoyStick.o parson.o main.o TCP_Client.o
	$(CC) $(FLAGS) JoyStick.o parson.o TCP_Client.o main.o -o ROSV_Joystick

main.o: main.cpp
	$(CC) -c $(FLAGS) main.cpp

JoyStick.o: JoyStick.cpp JoyStick.hpp
	$(CC) -c $(FLAGS) JoyStick.cpp

parson.o: parson.c parson.h
	$(CC) -c $(FLAGS) parson.c

TCP_Client.o: TCP_Client.cpp TCP_Client.hpp
	$(CC) -c $(FLAGS) TCP_Client.cpp

style: *.cpp *.c *.h *.hpp
	astyle -A4 -s2 *.c *.cpp *.h *.hpp
	rm *.orig

install:
	install ROSV_Joystick.json /etc
	touch /var/log/ROSV_Joystick	
	install ROSV_Joystick /usr/local/bin
	install ROSV_Joystick.sh /etc/init.d
#	update-rc.d ROSV_Joystick.sh defaults 98 02
	cp ROSV_Logrotate /etc/logrotate.d
	
uninstall: 
	rm /usr/local/bin/ROSV_Joystick
	rm /etc/ROSV_Joystick.json
	update-rc.d -f ROSV_Joystick.sh remove
	rm /etc/init.d/ROSV_Joystick.sh
	rm /etc/logrotate.d/ROSV_Logrotate

clean:
	rm -rf *o *~ ROSV_Joystick

{'fraction_non_alphanumeric': 0.13493975903614458, 'fraction_numerical': 0.006746987951807229, 'mean_word_length': 3.070588235294118, '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': '1472863', 'n_tokens_mistral': 1025, 'n_tokens_neox': 879, 'n_words': 201}