Install man page

This commit is contained in:
Nikita Ivanov 2022-06-14 17:50:15 +05:00
parent 5ee4d34d81
commit 33cdf8bebd
No known key found for this signature in database
GPG Key ID: 6E656AC5B97B5133

View File

@ -1,5 +1,6 @@
PREFIX := /usr/local
BINPREFIX := $(PREFIX)/bin
MANPREFIX := $(PREFIX)/man/man1
SRC := $(wildcard src/*.c)
OBJ := $(SRC:.c=.o)
@ -20,10 +21,16 @@ options:
@echo "CFLAGS = $(CFLAGS)"
@echo "LDFLAGS = $(LDFLAGS)"
install: ctpv ctpvclear
install: install.bin install.man
install.bin: ctpv ctpvclear
install -d $(BINPREFIX)
install $^ $(BINPREFIX)
install.man: doc/ctpv.1
install -d $(MANPREFIX)
install -m 0644 $^ $(MANPREFIX)
uninstall:
$(RM) $(BINPREFIX)/ctpv $(BINPREFIX)/ctpvclear
@ -56,6 +63,6 @@ embed/embed: make_embed
-include $(DEP)
.PHONY: all options install uninstall clean make_embed
.PHONY: all options install install.bin install.man uninstall clean make_embed
.DELETE_ON_ERROR: