X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=Makefile.am;h=c14c81f674176ea65fc35aeed9446c1aaa2e49cf;hp=2fd5e323dec6cee47bbbf25fe7dfc2aabd6be054;hb=7c0e823d0a57df99adc5b1b7975406bfd9e0d9fb;hpb=e666807a6ffc592be03dddb90ad2d40f2011c8d6 diff --git a/Makefile.am b/Makefile.am index 2fd5e323de..c14c81f674 100644 --- a/Makefile.am +++ b/Makefile.am @@ -11,15 +11,28 @@ nobase_dist_pkgdata_DATA = \ SUBDIRS = src doc -EXTRA_DIST = Doxyfile +EXTRA_DIST = \ + Doxyfile.in \ + tools/logger.pl docs: pdf html doxygen +Doxyfile: $(srcdir)/Doxyfile.in + @echo "Creating $@ from $<..." + @( \ + echo "### @@@ -= DO NOT EDIT THIS FILE =- @@@ ###" && \ + echo "### @@@ Make changes to Doxyfile.in @@@ ###" && \ + sed -e 's,@srcdir\@,$(srcdir),' $< \ + ) > $@ + doxygen:: - doxygen Doxyfile 2>&1 | perl tools/logger.pl > doxygen.log + $(MAKE) Doxyfile + doxygen Doxyfile 2>&1 | perl $(srcdir)/tools/logger.pl > doxygen.log + +distclean-local: + rm -rf Doxyfile doxygen -doxygen-clean: - rm -f -r doxygen doxygen.log +DISTCLEANFILES = doxygen.log MAINTAINERCLEANFILES = \ configure \