[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: test project example -help with builddir configuration

From: Dave Erickson
Subject: Re: test project example -help with builddir configuration
Date: Mon, 18 Nov 2013 19:40:58 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130623 Thunderbird/17.0.7


So in Oren's m4 file this is the target referenced for DX_CONFIG

#     .PHONY: doxygen-run doxygen-doc $(DX_PS_GOAL) $(DX_PDF_GOAL)
#     .INTERMEDIATE: doxygen-run $(DX_PS_GOAL) $(DX_PDF_GOAL)
#     doxygen-run: @DX_DOCDIR@/@address@hidden
#     doxygen-doc: doxygen-run $(DX_PS_GOAL) $(DX_PDF_GOAL)
#     @DX_DOCDIR@/@address@hidden: $(DX_CONFIG) $(pkginclude_HEADERS)
#         rm -rf @DX_DOCDIR@
#         $(DX_ENV) $(DX_DOXYGEN) $(srcdir)/$(DX_CONFIG)

I think it calls doxygen in the process of building target PACKAGE.tag; but it reference the srcdir relative to current.

the value of DX_CONFIG is set on the initialization command present in


# Files:
AC_SUBST([DX_CONFIG], [ifelse([$2], [], Doxyfile, [$2])])
AC_SUBST([DX_DOCDIR], [ifelse([$3], [], doxygen-doc, [$3])])

I don't think changing the file name is a good idea in DX_INIT_DOXYGEN so how would I change the target call above to make a builddir/doxygen.cfg and then execute it?

My thought was a conditional command

# if [ "$builddir" != "$srcdir" ] ;
#         $(DX_ENV) $(DX_DOXYGEN) $(builddir)/$(DX_CONFIG)
# elseif [ "$builddir" == "$srcdir" ]
#         $(DX_ENV) $(DX_DOXYGEN) $(srcdir)/$(DX_CONFIG)

also a conditional AC_SUBST inside that reflects the same choice to make a builddir config if needed but keep the doxygen.cfg @srcdir@ since that is the location of the files under inspection but I haven't written a script in 5 forgive my ignorance. Thoughts?



On 13-11-17 05:24 PM, Peter Johansson wrote:
Hi Dave,

On 11/16/2      013 02:35 PM, dave wrote:

But when i switch to a fresh build directory and then try to configure outside the sourcedir it fails with :
address@hidden build-hello]$ make doxygen-run
make: *** No rule to make target `../helloworld_cc-0.5/doxygen.cfg', needed by `doxygen-doc/helloworld_cc.tag'. Stop.

You set @DX_CONFIG@ to $(srcdir)/doxygen.cfg but you don't have that file, becaue you have a $(builddir)/doxygen.cfg.

Easiest is probably to change how @DX_CONFIG@ is defined, but I haven't tested.

Hope that helps,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]