diff --git a/doc/doxygen/Makefile b/doc/doxygen/Makefile
index c9d0c22fed4f5e1160135d849237d58dc7e4a283..90188c15c5cf64ccb0d718477ca8390d842348dc 100644
--- a/doc/doxygen/Makefile
+++ b/doc/doxygen/Makefile
@@ -1,3 +1,10 @@
+RIOTBASE=$(shell git rev-parse --show-toplevel)
+# Generate list of quoted absolute include paths. Evaluated in riot.doxyfile.
+export STRIP_FROM_INC_PATH_LIST=$(shell \
+    git ls-tree -dr --full-tree --name-only HEAD |\
+    grep '/include$$' |\
+    sed 's/.*/\"$(subst /,\/,${RIOTBASE})\/\0\"/')
+
 .PHONY: doc
 doc: html
 
diff --git a/doc/doxygen/riot.doxyfile b/doc/doxygen/riot.doxyfile
index 00ae19be94194e51116c37ffa28a184de1118891..dec6cd9e691a599f563f1d18549c42deb9b3dc45 100644
--- a/doc/doxygen/riot.doxyfile
+++ b/doc/doxygen/riot.doxyfile
@@ -161,7 +161,7 @@ STRIP_FROM_PATH        =
 # specify the list of include paths that are normally passed to the compiler
 # using the -I flag.
 
-STRIP_FROM_INC_PATH    =
+STRIP_FROM_INC_PATH    = $(STRIP_FROM_INC_PATH_LIST) # Exported from Makefile.
 
 # If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter (but
 # less readable) file names. This can be useful is your file systems doesn't