Minor: add INSTALL var in Makefile

This commit is contained in:
Nikita Ivanov 2022-07-15 00:26:49 +05:00
parent f2e4ad4482
commit 8d781e349c
No known key found for this signature in database
GPG Key ID: 6E656AC5B97B5133

View File

@ -14,6 +14,8 @@ LIBS := magic crypto
CFLAGS += $(O) -MD -Wall -Wextra -Wno-unused-parameter
LDFLAGS += $(addprefix -l,$(LIBS))
INSTALL := install
all: ctpv
options:
@ -24,12 +26,12 @@ options:
install: install.bin install.man
install.bin: ctpv ctpvclear
install -d $(BINPREFIX)
install $^ $(BINPREFIX)
$(INSTALL) -d $(BINPREFIX)
$(INSTALL) $^ $(BINPREFIX)
install.man: doc/ctpv.1
install -d $(MANPREFIX)
install -m 0644 $^ $(MANPREFIX)
$(INSTALL) -d $(MANPREFIX)
$(INSTALL) -m 0644 $^ $(MANPREFIX)
uninstall:
$(RM) $(BINPREFIX)/ctpv $(BINPREFIX)/ctpvclear $(MANPREFIX)/ctpv.1