Mercurial
comparison Makefile @ 1:6428879e8e51 main tip
Added more targets and vars for (un)install
| author | luxanna <l.lux@magenta.de> |
|---|---|
| date | Thu, 14 May 2026 23:18:28 +0200 |
| parents | 8376aa48453d |
| children |
comparison
equal
deleted
inserted
replaced
| 0:8376aa48453d | 1:6428879e8e51 |
|---|---|
| 1 .POSIX: | |
| 2 .SUFFIXES: | |
| 3 HARE=hare | |
| 4 HAREFLAGS= | |
| 5 | |
| 1 TARGET=hg-wolp | 6 TARGET=hg-wolp |
| 7 LIBS=termbox | |
| 8 PREFIX=/usr/local | |
| 9 DESTDIR=$(PREFIX)/bin | |
| 10 LIBRARY_PATH=$(PREFIX)/lib/ | |
| 2 | 11 |
| 3 build: | 12 build: |
| 4 mkdir -p bin | 13 mkdir -p bin |
| 5 hare build -o bin/${TARGET} -ltermbox cmd/"${TARGET}.ha" | 14 ${HARE} build -o bin/${TARGET} -L${LIBRARY_PATH} -l${LIBS} cmd/"${TARGET}.ha" |
| 6 | 15 |
| 7 clean: | 16 clean: |
| 8 rm -rf bin | 17 rm -rf bin |
| 18 | |
| 19 install: build | |
| 20 install -m655 bin/${TARGET} ${DESTDIR} | |
| 21 | |
| 22 uninstall: | |
| 23 rm "$(DESTDIR)/$(TARGET)" | |
| 24 | |
| 25 .PHONY: build clean install uninstall |
