hr/Makefile

16 lines
340 B
Makefile
Raw Normal View History

2023-02-13 23:10:44 +03:00
PREFIX ?= /usr/local
SRCDIR = src
BUILDDIR = build
2022-07-20 23:10:55 +03:00
all:
2023-02-13 23:10:44 +03:00
nimble build -d:release
gzip -9ck $(SRCDIR)/hr.1 > $(BUILDDIR)/hr.1.gz
2022-07-20 23:10:55 +03:00
install:
2023-02-13 23:10:44 +03:00
install -Dm755 $(BUILDDIR)/hr $(PREFIX)/bin/hr
install -Dm644 $(BUILDDIR)/hr.1.gz $(PREFIX)/share/man/man1/hr.1.gz
uninstall:
rm -v $(PREFIX)/bin/hr
rm -v $(PREFIX)/share/man/man1/hr.1.gz