Editing DESTDIR
This commit is contained in:
parent
bc55b53f8a
commit
00572642eb
1 changed files with 2 additions and 2 deletions
4
Makefile
4
Makefile
|
@ -1,5 +1,5 @@
|
|||
GPP = g++ -Wall -std=c++17 -O3
|
||||
DESTDIR ?= /usr/bin
|
||||
DESTDIR ?= /usr
|
||||
|
||||
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
|
||||
|
@ -28,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:
|
||||
install sloth $(DESTDIR)
|
||||
install sloth $(DESTDIR)/bin
|
||||
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
|
||||
|
|
Reference in a new issue