python/yarl: update to 1.17.2
[oi-userland.git] / make-rules / component.mk
blob437a5ebb12376ea5340032ac209b51466c07e6bf
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
19 # CDDL HEADER END
21 # Copyright 2017 Gary Mills
22 # Copyright (c) 2010, 2016, Oracle and/or its affiliates. All rights reserved.
25 # A simple rule to print the value of any macro. Ex:
26 # $ gmake print-REQUIRED_PACKAGES
27 # Note that some macros are set on a per target basis, so what you see
28 # is not always what you get.
29 print-%:
30 @echo '$(subst ','\'',$*=$($*)) (origin: $(origin $*), flavor: $(flavor $*))'
32 # A simple rule to print only the value of any macro.
33 print-value-%:
34 @echo '$(subst ','\'',$($*))'
36 # Provide default print package targets for components that do not rely on IPS.
37 # Define them implicitly so that the definitions do not collide with ips.mk
38 define print-package-rule
39 echo $(strip $(PACKAGE_$(1))) | tr ' ' '\n'
40 endef
43 COMPONENT_TOOL = $(WS_TOOLS)/userland-component
45 format:
46 @$(COMPONENT_TOOL) --path $(COMPONENT_DIR);
48 update:
49 @if [ "$(VERSION)X" = "X" ]; \
50 then $(COMPONENT_TOOL) --path $(COMPONENT_DIR) --bump; \
51 else $(COMPONENT_TOOL) --path $(COMPONENT_DIR) --bump $(VERSION); \
52 fi;
54 update-latest:
55 $(COMPONENT_TOOL) --path $(COMPONENT_DIR) --bump latest;