Aurelien Larcher
2021-02-01 d9c32b908479741ba3810f49ca0ac889a3e1c2c0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
 
# A simple rule to print the value of any macro.  Ex:
#    $ gmake print-REQUIRED_PACKAGES
# Note that some macros are set on a per target basis, so what you see
# is not always what you get.
print-%:
    @echo '$(subst ','\'',$*=$($*)) (origin: $(origin $*), flavor: $(flavor $*))'
 
# A simple rule to print only the value of any macro.
print-value-%:
    @echo '$(subst ','\'',$($*))'
 
# Provide default print package targets for components that do not rely on IPS.
# Define them implicitly so that the definitions do not collide with ips.mk
define print-package-rule
echo $(strip $(PACKAGE_$(1))) | tr ' ' '\n'
endef
 
 
COMPONENT_TOOL = $(WS_TOOLS)/userland-component
 
format:
    @$(COMPONENT_TOOL) --path $(COMPONENT_DIR);
 
update:
    @if [ "$(VERSION)X" = "X" ]; \
    then $(COMPONENT_TOOL) --path $(COMPONENT_DIR) --bump; \
    else $(COMPONENT_TOOL) --path $(COMPONENT_DIR) --bump $(VERSION); \
    fi;
 
update-latest:
    $(COMPONENT_TOOL) --path $(COMPONENT_DIR) --bump latest;