improve Makefile to autodetect file extensions and the asciidoc file type