From 70c04da9543c2b2c781a0d6ec6e9383b457f4810 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Sun, 5 Feb 2023 00:50:58 +0400 Subject: [PATCH] Added a testing run target and a clean target to Makefile. --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9207757..fa213d7 100755 --- a/Makefile +++ b/Makefile @@ -13,6 +13,9 @@ all: ${TARGET} ${TARGET}: go build -o bin/$@ ${LDFLAGS} cmd/$@/main.go +run: + bin/${TARGET} -listen 127.0.0.1:18123 -db . + install: install -Dm 0755 bin/${TARGET} ${DESTDIR}usr/bin/${TARGET} install -Dm 0644 LICENSE ${DESTDIR}usr/share/licenses/${TARGET}/LICENSE @@ -21,4 +24,8 @@ install: uninstall: rm ${DESTDIR}usr/bin/${TARGET} rm ${DESTDIR}usr/share/licenses/${TARGET}/LICENSE - rm ${DESTDIR}${SYSDDIR}/${TARGET}.service \ No newline at end of file + rm ${DESTDIR}${SYSDDIR}/${TARGET}.service + +clean: + rm bin/${TARGET} + rm web/*.pug.go \ No newline at end of file