1
0

Added a testing run target and a clean target to Makefile.

This commit is contained in:
Alexander Andreev 2023-02-05 00:50:58 +04:00
parent 01adbb882c
commit 70c04da954
Signed by: Arav
GPG Key ID: 0388CC8FAA51063F

View File

@ -13,6 +13,9 @@ all: ${TARGET}
${TARGET}: ${TARGET}:
go build -o bin/$@ ${LDFLAGS} cmd/$@/main.go go build -o bin/$@ ${LDFLAGS} cmd/$@/main.go
run:
bin/${TARGET} -listen 127.0.0.1:18123 -db .
install: install:
install -Dm 0755 bin/${TARGET} ${DESTDIR}usr/bin/${TARGET} install -Dm 0755 bin/${TARGET} ${DESTDIR}usr/bin/${TARGET}
install -Dm 0644 LICENSE ${DESTDIR}usr/share/licenses/${TARGET}/LICENSE install -Dm 0644 LICENSE ${DESTDIR}usr/share/licenses/${TARGET}/LICENSE
@ -21,4 +24,8 @@ install:
uninstall: uninstall:
rm ${DESTDIR}usr/bin/${TARGET} rm ${DESTDIR}usr/bin/${TARGET}
rm ${DESTDIR}usr/share/licenses/${TARGET}/LICENSE rm ${DESTDIR}usr/share/licenses/${TARGET}/LICENSE
rm ${DESTDIR}${SYSDDIR}/${TARGET}.service rm ${DESTDIR}${SYSDDIR}/${TARGET}.service
clean:
rm bin/${TARGET}
rm web/*.pug.go