Merge pull request #22 from apjanke/destdir
Makefile: add DESTDIR support
This commit is contained in:
commit
0496a3f7c8
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