Merge pull request #22 from apjanke/destdir

Makefile: add DESTDIR support
This commit is contained in:
Brian Barto 2016-05-20 19:54:32 -04:00
commit 0496a3f7c8

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