diff --git a/DSTAT-temp/Makefile b/DSTAT-temp/Makefile
index f190753c0baa7ebd596bb280cbb08c356f890c98..bd0371dc9ffccdbce2337a125e7b9d4bac681634 100644
--- a/DSTAT-temp/Makefile
+++ b/DSTAT-temp/Makefile
@@ -128,7 +128,7 @@ RM              := rm
 ifeq ($(os),Windows)
 RMDIR           := rmdir /S /Q
 else
-RMDIR           := rm -R
+RMDIR           := rm -df || true
 endif
 
 # On Windows, we need to override the shell to force the use of cmd.exe
@@ -476,7 +476,7 @@ doc:
 .PHONY: cleandoc
 cleandoc:
 	@$(if $(wildcard $(docdir)),echo $(MSG_CLEAN_DOC))
-	$(Q)$(if $(wildcard $(docdir)),$(RM) --recursive $(docdir))
+	$(Q)$(if $(wildcard $(docdir)),$(RM) -r $(docdir))
 
 # Rebuild the Doxygen generated documentation.
 .PHONY: rebuilddoc
diff --git a/DSTAT-temp/doxyfile b/DSTAT-temp/doxyfile
index efb92c91b1bac07852ebc2d27cfa7e11f66f9c3f..e0b0191e8307efc52fb642688ce9da11917d4d3c 100644
--- a/DSTAT-temp/doxyfile
+++ b/DSTAT-temp/doxyfile
@@ -655,7 +655,7 @@ WARN_LOGFILE           =
 # directories like "/usr/src/myproject". Separate the files or directories
 # with spaces.
 
-INPUT                 ="../src"
+INPUT                 ="./src"
 
 # This tag can be used to specify the character encoding of the source files
 # that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is
@@ -673,7 +673,7 @@ INPUT_ENCODING         = UTF-8
 # *.hxx *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm *.dox *.py
 # *.f90 *.f *.for *.vhd *.vhdl
 
-FILE_PATTERNS          =
+FILE_PATTERNS          = *.c *.cpp *.h
 
 # The RECURSIVE tag can be used to turn specify whether or not subdirectories
 # should be searched for input files as well. Possible values are YES and NO.
@@ -687,7 +687,7 @@ RECURSIVE              = YES
 # Note that relative paths are relative to the directory from which doxygen is
 # run.
 
-EXCLUDE                =
+EXCLUDE                ="./src/asf"
 
 # The EXCLUDE_SYMLINKS tag can be used to select whether or not files or
 # directories that are symbolic links (a Unix file system feature) are excluded