Add DESTDIR variable to Makefile

This commit is contained in:
Nikita Ivanov 2022-06-18 15:27:20 +05:00
parent 16a52340de
commit 39f1c78f99
No known key found for this signature in database
GPG Key ID: 6E656AC5B97B5133

View File

@ -1,6 +1,6 @@
PREFIX := /usr/local
BINPREFIX := $(PREFIX)/bin
MANPREFIX := $(PREFIX)/man/man1
BINPREFIX := $(DESTDIR)$(PREFIX)/bin
MANPREFIX := $(DESTDIR)$(PREFIX)/man/man1
SRC := $(wildcard src/*.c)
OBJ := $(SRC:.c=.o)