--- a/tools/nfsrahead/Makefile.am
+++ b/tools/nfsrahead/Makefile.am
@@ -6,7 +6,7 @@
 man5_MANS = nfsrahead.man
 EXTRA_DIST = $(man5_MANS)
 
-udev_rulesdir = /usr/lib/udev/rules.d/
+udev_rulesdir = @TERMUX_PREFIX@/lib/udev/rules.d/
 udev_rules_DATA = 99-nfs.rules
 
 99-nfs.rules: 99-nfs.rules.in $(builddefs)
