refactor: improve Makefile structure and usability #11
3
Makefile
3
Makefile
@@ -1,4 +1,5 @@
|
|||||||
BINARY_NAME=lambda.exe
|
BINARY_NAME=lambda.exe
|
||||||
|
TEST=simple
|
||||||
|
|
||||||
.PHONY: help build run profile explain graph docs
|
.PHONY: help build run profile explain graph docs
|
||||||
|
|
||||||
@@ -17,8 +18,6 @@ build:
|
|||||||
@ go build -o ${BINARY_NAME} ./cmd/lambda
|
@ go build -o ${BINARY_NAME} ./cmd/lambda
|
||||||
@ chmod +x ${BINARY_NAME}
|
@ chmod +x ${BINARY_NAME}
|
||||||
|
|
||||||
TEST=simple
|
|
||||||
|
|
||||||
run: build
|
run: build
|
||||||
@ ./lambda.exe - < ./samples/$(TEST).txt > program.out
|
@ ./lambda.exe - < ./samples/$(TEST).txt > program.out
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user