Added a testing run target and a clean target to Makefile.
This commit is contained in:
parent
01adbb882c
commit
70c04da954
7
Makefile
7
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
|
||||
@ -22,3 +25,7 @@ uninstall:
|
||||
rm ${DESTDIR}usr/bin/${TARGET}
|
||||
rm ${DESTDIR}usr/share/licenses/${TARGET}/LICENSE
|
||||
rm ${DESTDIR}${SYSDDIR}/${TARGET}.service
|
||||
|
||||
clean:
|
||||
rm bin/${TARGET}
|
||||
rm web/*.pug.go
|
Loading…
Reference in New Issue
Block a user