Fix make docs rule to work with out-of-tree builds.
[openocd.git] / Makefile.am
index 2fd5e32..cb5277b 100644 (file)
@@ -16,7 +16,7 @@ EXTRA_DIST = Doxyfile
 docs: pdf html doxygen
 
 doxygen::
-       doxygen Doxyfile 2>&1 | perl tools/logger.pl > doxygen.log
+       (cd $(srcdir) && doxygen Doxyfile 2>&1 | perl tools/logger.pl ) > doxygen.log
 
 doxygen-clean:
        rm -f -r doxygen doxygen.log