diff --git a/Makefile b/Makefile index 72297e0..8a3f4d2 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,5 @@ GPP = g++ -Wall -std=c++17 -O3 +DESTDIR = /usr/bin sloth: src/main.cpp src/parser/lex.yy.o src/parser/parser.tab.o src/variables/environment.o src/variables/variable.o src/variables/value.o src/operations/node.o src/operations/operators.o src/string.o src/shell.o $(GPP) src/main.cpp src/parser/lex.yy.o src/parser/parser.tab.o src/variables/environment.o src/variables/variable.o src/variables/value.o src/operations/node.o src/operations/operators.o src/string.o src/shell.o -ledit -o sloth @@ -27,6 +28,6 @@ src/shell.o: src/shell.hpp src/shell.cpp src/string.o: src/string.h src/string.c $(GPP) -c src/string.c -o src/string.o install: - mv sloth /usr/bin/ + install sloth $(DESTDIR) clean: rm src/parser/lex.yy.c src/parser/parser.tab.c src/parser/parser.tab.h src/parser/lex.yy.o src/parser/parser.tab.o src/variables/environment.o src/variables/variable.o src/variables/value.o src/operations/node.o src/operations/operators.o src/string.o src/shell.o sloth