-HTMLMAN=$(foreach man,$(man_MANS),$(man).html)
-$(HTMLMAN) : %.html : % $(top_srcdir)/scripts/htmlman
- rm -f $@.new
- $(top_srcdir)/scripts/htmlman $< >$@.new
- chmod 444 $@.new
- mv -f $@.new $@
+HTMLMAN=disorderd.8.html disorder.1.html disorder.3.html \
+disorder_config.5.html disorder-dump.8.html disorder_protocol.5.html \
+disorder-deadlock.8.html disorder-rescan.8.html disobedience.1.html \
+disorderfm.1.html disorder-speaker.8.html disorder-playrtp.1.html \
+disorder-normalize.8.html disorder-decode.8.html disorder-stats.8.html \
+disorder-dbupgrade.8.html disorder_templates.5.html \
+disorder_actions.5.html disorder_options.5.html disorder.cgi.8.html \
+disorder_preferences.5.html disorder-choose.8.html
+
+$(wordlist 2,9999,$(HTMLMAN)): disorderd.8.html
+disorderd.8.html: $(man_MANS)
+ $(top_srcdir)/scripts/htmlman -- $^