--- a/Makefile
+++ b/Makefile
@@ -4,9 +4,9 @@
 DESTDIR =
 
-binprefix = 
+binprefix = @TERMUX_PREFIX@
-manprefix = /usr
+manprefix = @TERMUX_PREFIX@
 exec_prefix = $(binprefix)/
-sbindir = $(exec_prefix)sbin
+sbindir = $(exec_prefix)bin
 mandir = $(manprefix)/share/man
 oldmandir = $(manprefix)/man
 
