From cec25f6c6ae20e7d32cc9291c2c8827fcd3dec17 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Fri, 27 Dec 2024 16:30:09 +0400 Subject: [PATCH] In Makefile make run and install targets to compile a program first. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 810f6d8..f03ccd3 100755 --- a/Makefile +++ b/Makefile @@ -22,10 +22,10 @@ ifeq (,$(wildcard $(shell go env GOPATH)/bin/templ)) endif $(shell go env GOPATH)/bin/templ generate -run: +run: | ${TARGET} bin/${TARGET} -file-handling -path /mnt/data -listen 127.0.0.1:19135 -install: +install: | ${TARGET} install -Dm 0755 bin/${TARGET} ${DESTDIR}${PREFIX}/bin/${TARGET} install -Dm 0644 init/systemd/${TARGET}.service ${DESTDIR}/${SYSDDIR}/${TARGET}.service