Makefile: add DESTDIR support
This commit is contained in:
parent
eab9e52438
commit
91cdae4b72
6
Makefile
6
Makefile
@ -60,9 +60,9 @@ clean:
|
|||||||
rm -rf $(OBJ)
|
rm -rf $(OBJ)
|
||||||
|
|
||||||
install:
|
install:
|
||||||
install -d $(bindir)
|
install -d $(DESTDIR)$(bindir)
|
||||||
cd $(BIN) && install $(EXES) $(bindir)
|
cd $(BIN) && install $(EXES) $(DESTDIR)$(bindir)
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
for exe in $(EXES); do rm $(bindir)/$$exe; done
|
for exe in $(EXES); do rm $(DESTDIR)$(bindir)/$$exe; done
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user