commit f263310db15226da64cd37109bdf792cfbde1dc5 parent 6f8c9c1f66aab6ea50f00c2cb7c5808e08579ee3 Author: Francesco Saccone <francesco@francescosaccone.com> Date: Tue, 1 Apr 2025 14:27:34 +0200 build: add 'install' target Signed-off-by: Francesco Saccone <francesco@francescosaccone.com> Diffstat:
M | Makefile | | | 10 | +++++++++- |
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile @@ -15,4 +15,12 @@ hermes: $(SOURCES:.c=.o) clean: rm -f hermes *.o -.PHONY: all clean +install: all + mkdir -p $(DESTDIR)$(PREFIX)/bin + cp -f hermes $(DESTDIR)$(PREFIX)/bin + chmod 755 $(DESTDIR)$(PREFIX)/bin/hermes + mkdir -p $(DESTDIR)$(MANPREFIX)/man1 + cp -f hermes.1 $(DESTDIR)$(MANPREFIX)/man1 + chmod 644 $(DESTDIR)$(MANPREFIX)/man1/hermes.1 + +.PHONY: all clean install