diff --git a/Makefile.am b/Makefile.am
index 4f0b2d080f773ea324f9bf4d7320aee81227e7b7..40d22acdd5884d1ed285da4abf5195948aacd251 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -457,10 +457,11 @@ if WANT_HTOOLS
 bin_SCRIPTS += $(filter-out htools/hail,$(HS_PROGS))
 install-exec-hook:
 	@mkdir_p@ $(DESTDIR)$(iallocatorsdir)
-	$(LN_S) -f $(DESTDIR)$(bindir)/htools \
+# FIXME: this is a hardcoded logic, instead of auto-resolving
+	$(LN_S) -f ../../../bin/htools \
 		   $(DESTDIR)$(iallocatorsdir)/hail
 	for role in $(HS_BIN_ROLES); do \
-		$(LN_S) -f $(DESTDIR)$(bindir)/htools \
+		$(LN_S) -f htools \
 			   $(DESTDIR)$(bindir)/$$role ; \
 	done
 endif