If you have just finished developing a module and you want to delete all the crap (Makefile.in and so on) just type under module top directory:

make maintainer-clean && rm -rf config

Requirements:

  • Have Makefile file ready