diff --git a/Makefile.am b/Makefile.am
index d07c52f71469954c1a46dc9429a5066054840317..77f51692053377866fe10c095d76e0511110ad89 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1490,7 +1490,7 @@ hlint: $(HS_BUILT_SRCS) htools/lint-hints.hs
 	  --ignore "Use &&&" \
 	  --ignore "Use void" \
 	  --hint htools/lint-hints \
-	  $(filter-out htools/Ganeti/THH.hs,$(HS_LIBTEST_SRCS))
+	  $(filter-out htools/Ganeti/THH.hs,$(HS_LIBTEST_SRCS) $(HS_PROG_SRCS))
 
 # a dist hook rule for updating the vcs-version file; this is
 # hardcoded due to where it needs to build the file...