Makefile: add DESTDIR support

This commit is contained in:
Andrew Janke 2016-05-20 16:13:33 -04:00
parent eab9e52438
commit 91cdae4b72

View File

@ -60,9 +60,9 @@ clean:
rm -rf $(OBJ)
install:
install -d $(bindir)
cd $(BIN) && install $(EXES) $(bindir)
install -d $(DESTDIR)$(bindir)
cd $(BIN) && install $(EXES) $(DESTDIR)$(bindir)
uninstall:
for exe in $(EXES); do rm $(bindir)/$$exe; done
for exe in $(EXES); do rm $(DESTDIR)$(bindir)/$$exe; done