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