uxndebug

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit fda29c80bf1022625d6b50658e2c8a61296628b2
parent a19ca3df0b7387c6c4711225752c69e17b025389
Author: aabacchus <ben@bvnf.space>
Date:   Mon,  6 Jun 2022 00:45:53 +0100

add install target to Makefile

Diffstat:
MMakefile | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile @@ -1,11 +1,18 @@ .POSIX: XCFLAGS = $(CFLAGS) -Wall -Wextra -pedantic -Og -g +PREFIX = /usr/local all: uxndebug uxndebug: uxndebug.c $(CC) $(XCFLAGS) -o $@ uxndebug.c +install: uxndebug + mkdir -p $(DESTDIR)$(PREFIX)/bin + mkdir -p $(DESTDIR)$(PREFIX)/share/man/man5 + cp uxndebug uxnsolve $(DESTDIR)$(PREFIX)/bin/ + cp uxndebug.5 $(DESTDIR)$(PREFIX)/share/man/man5/ + clean: rm -f uxndebug