diff --git a/Documentation/Doxyfile.in b/Documentation/Doxyfile.in
index ac70efbff9fd..c58631200dd5 100644
--- a/Documentation/Doxyfile.in
+++ b/Documentation/Doxyfile.in
@@ -833,11 +833,11 @@ RECURSIVE              = YES
 # Note that relative paths are relative to the directory from which doxygen is
 # run.
 
-EXCLUDE                = ../src/libcamera/device_enumerator_sysfs.cpp \
-			 ../src/libcamera/device_enumerator_udev.cpp \
-			 ../src/libcamera/include/device_enumerator_sysfs.h \
-			 ../src/libcamera/include/device_enumerator_udev.h \
-			 ../src/libcamera/pipeline/
+EXCLUDE                = @TOP_SRCDIR@/src/libcamera/device_enumerator_sysfs.cpp \
+			 @TOP_SRCDIR@/src/libcamera/device_enumerator_udev.cpp \
+			 @TOP_SRCDIR@/src/libcamera/include/device_enumerator_sysfs.h \
+			 @TOP_SRCDIR@/src/libcamera/include/device_enumerator_udev.h \
+			 @TOP_SRCDIR@/src/libcamera/pipeline/
 
 # 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
