The Free Pascal compiler (available in debian packages) contains a CHM project compiler called chmcmd, starting with version 2.4.4, further improved in 2.6.0 It is a bit initial, but some people using it with doxygen report success.