Marcel Telka
2024-04-05 cf51021cfb143a919a6c673ecd9fcc8b9172b7d7
commit | author | age
212edd 1 #
MT 2 # CDDL HEADER START
3 #
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.
7 #
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.
12 #
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]
18 #
19 # CDDL HEADER END
20 #
21 # Copyright 2017 Gary Mills
22 # Copyright (c) 2010, 2016, Oracle and/or its affiliates. All rights reserved.
23 #
27cdce 24
AL 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 $*))'
31
32 # A simple rule to print only the value of any macro.
33 print-value-%:
34     @echo '$(subst ','\'',$($*))'
35
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
41
42
43 COMPONENT_TOOL = $(WS_TOOLS)/userland-component
44
45 format:
46     @$(COMPONENT_TOOL) --path $(COMPONENT_DIR);
47
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;
53
d9c32b 54 update-latest:
AL 55     $(COMPONENT_TOOL) --path $(COMPONENT_DIR) --bump latest;
56