Upd
This commit is contained in:
parent
6a25349999
commit
56feb746ef
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,2 +1 @@
|
|||||||
hr
|
build/
|
||||||
hr.1.gz
|
|
||||||
|
16
Makefile
16
Makefile
@ -1,9 +1,15 @@
|
|||||||
PREFIX := "$$HOME/.local"
|
PREFIX ?= /usr/local
|
||||||
|
SRCDIR = src
|
||||||
|
BUILDDIR = build
|
||||||
|
|
||||||
all:
|
all:
|
||||||
nimble build
|
nimble build -d:release
|
||||||
rst2man src/hr.1.rst | gzip -9 -c > hr.1.gz
|
gzip -9ck $(SRCDIR)/hr.1 > $(BUILDDIR)/hr.1.gz
|
||||||
|
|
||||||
install:
|
install:
|
||||||
install -D hr $(PREFIX)/bin/hr
|
install -Dm755 $(BUILDDIR)/hr $(PREFIX)/bin/hr
|
||||||
install -D hr.1.gz $(PREFIX)/share/man/man1/hr.1.gz
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user