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