# HG changeset patch # User luxanna # Date 1778793508 -7200 # Node ID 6428879e8e5140c310cb7a50d9781f41bcb90144 # Parent 8376aa48453db0214aa54f0ca929a709d7c94272 Added more targets and vars for (un)install diff -r 8376aa48453d -r 6428879e8e51 Makefile --- a/Makefile Wed May 13 22:02:23 2026 +0200 +++ b/Makefile Thu May 14 23:18:28 2026 +0200 @@ -1,8 +1,25 @@ +.POSIX: +.SUFFIXES: +HARE=hare +HAREFLAGS= + TARGET=hg-wolp +LIBS=termbox +PREFIX=/usr/local +DESTDIR=$(PREFIX)/bin +LIBRARY_PATH=$(PREFIX)/lib/ build: mkdir -p bin - hare build -o bin/${TARGET} -ltermbox cmd/"${TARGET}.ha" + ${HARE} build -o bin/${TARGET} -L${LIBRARY_PATH} -l${LIBS} cmd/"${TARGET}.ha" clean: - rm -rf bin \ No newline at end of file + rm -rf bin + +install: build + install -m655 bin/${TARGET} ${DESTDIR} + +uninstall: + rm "$(DESTDIR)/$(TARGET)" + +.PHONY: build clean install uninstall