Skip to content

Commit e85361d

Browse files
committed
Fix bugs in Makefile, install manpage to $PREFIX/share/man/
1 parent b167882 commit e85361d

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

Makefile

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
.PHONY: all clean docs install dist test benchmark memcheck profile
22

3+
OS := $(shell uname -s)
4+
35
ifneq (${OS}, Darwin)
46
LDFLAGS += -static
57
endif
68

7-
OS := $(shell uname -s)
89
CFLAGS += -D_GNU_SOURCE=1 -O3 -Wall -Werror -Winline -pedantic-errors -std=c99
910
PREFIX := /usr/local
1011
BINDIR := $(PREFIX)/bin
11-
MANDIR := $(PREFIX)/man/man1
12+
MANDIR := $(PREFIX)/share/man/man1
1213
SHA := $(shell git rev-parse HEAD)
1314

1415
all: jt docs
@@ -53,7 +54,7 @@ install: jt jt.1
5354

5455
jt.tar: jt jt.1
5556
tar cf $@ --transform 's@^@bin/@' jt
56-
tar uf $@ --transform 's@^@man/man1/@' jt.1
57+
tar uf $@ --transform 's@^@share/man/man1/@' jt.1
5758

5859
%.tar.gz: %.tar
5960
gzip -f $^

README.md

+5
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,11 @@ Otherwise, build from source:
169169
make && make test && sudo make install
170170
```
171171

172+
> **NOTE:** Previous versions installed the **jt** manual in the `$PREFIX/man/`
173+
> directory, which was incorrect. They are now installed into `$PREFIX/share/man/`.
174+
> If you have installed **jt** previously you will probably want to delete those
175+
> old man pages from the `$PREFIX/man/` directory if you install a newer version.
176+
172177
## DOCUMENTATION
173178

174179
See the [man page][man] or `man jt` in your terminal.

jt.tar.gz

3 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)