-
Notifications
You must be signed in to change notification settings - Fork 2.1k
make: directory variables are not available for global targets #10100
Copy link
Copy link
Closed
Labels
Area: build systemArea: Build systemArea: Build systemDiscussion: RFCThe issue/PR is used as a discussion starting point about the item of the issue/PRThe issue/PR is used as a discussion starting point about the item of the issue/PRState: staleState: The issue / PR has no activity for >185 daysState: The issue / PR has no activity for >185 daysType: enhancementThe issue suggests enhanceable parts / The PR enhances parts of the codebase / documentationThe issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation
Metadata
Metadata
Assignees
Labels
Area: build systemArea: Build systemArea: Build systemDiscussion: RFCThe issue/PR is used as a discussion starting point about the item of the issue/PRThe issue/PR is used as a discussion starting point about the item of the issue/PRState: staleState: The issue / PR has no activity for >185 daysState: The issue / PR has no activity for >185 daysType: enhancementThe issue suggests enhanceable parts / The PR enhances parts of the codebase / documentationThe issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation
Description
When building an application there are several standard directories available in the environment, e.g.
BINDIRBASEand so on, which are defined in the rootMakefile.include. However, these variables are not available when using a global target such asmake docormake static-test. Some of these would still be useful to have, e.g. see #10038 that introduces a common build directory with the goal to allow for out-of-source-builds in the future, with that in place it would also be valuable to use such common build dir for doc and static-test output, too.Hence, I would suggest to move all directory variables currently declared into a separate file under
makefileswhich would allow this file to be included for global targets, too.Steps to reproduce the issue
use #10038 and run
make docExpected results
Would be nice to redirect output to a common build directory, like
$(RIOTBASE)/build/doc.Actual results
Doxygen output is always created in
$(RIOTBASE)/doc/doxygen/htmlVersions
Not important.