674
|
1 |
|
|
2 |
# put all files in a specific docs folder
|
|
3 |
#
|
|
4 |
EPOCDOCS:=$(EPOCROOT)/epoc32/docs
|
|
5 |
$(call makepath,$(EPOCDOCS))
|
|
6 |
|
|
7 |
# this test produces a text file per component (which lists all the
|
|
8 |
# .mmp files in the component).
|
|
9 |
#
|
|
10 |
# define a macro to create the target name from COMPONENT_META so that
|
|
11 |
# the target.flm can use it to work out which target to add dependencies to.
|
|
12 |
#
|
|
13 |
# use a shorter name for the component (the name of the directory
|
|
14 |
# which contains the bld.inf file) for portability of the tests only.
|
|
15 |
#
|
|
16 |
define component_target
|
|
17 |
$(EPOCDOCS)/$(lastword $(subst /, ,$(dir $1))).txt
|
|
18 |
endef
|
|
19 |
|
|
20 |
DOCTARGET:=$(call component_target,$(COMPONENT_META))
|
|
21 |
|
|
22 |
ALL:: $(DOCTARGET)
|
|
23 |
|
|
24 |
# Script to generate the per-component file. The special "make" variable $^
|
|
25 |
# contains the list of prerequisites.
|
|
26 |
#
|
|
27 |
SCRIPT:=echo $(DOCTARGET) uses $$(sort $$^) > $(DOCTARGET)
|
|
28 |
|
|
29 |
# Create a recipe to execute the script.
|
|
30 |
#
|
|
31 |
$(call raptor_recipe,doc_component,$(DOCTARGET),,$(SCRIPT))
|