author | jjiang |
Tue, 23 Apr 2019 10:08:52 +0800 | |
changeset 54588 | f203906d0dde |
parent 51676 | 5a1be00ea4f6 |
permissions | -rw-r--r-- |
39110
712f29ba8708
8136771: Implement the license-swap logic as a make target
erikj
parents:
diff
changeset
|
1 |
# |
51553
867acd5a4140
8210008: custom extension for make/SourceRevision.gmk
twisti
parents:
47314
diff
changeset
|
2 |
# Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. |
39110
712f29ba8708
8136771: Implement the license-swap logic as a make target
erikj
parents:
diff
changeset
|
3 |
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
712f29ba8708
8136771: Implement the license-swap logic as a make target
erikj
parents:
diff
changeset
|
4 |
# |
712f29ba8708
8136771: Implement the license-swap logic as a make target
erikj
parents:
diff
changeset
|
5 |
# This code is free software; you can redistribute it and/or modify it |
712f29ba8708
8136771: Implement the license-swap logic as a make target
erikj
parents:
diff
changeset
|
6 |
# under the terms of the GNU General Public License version 2 only, as |
712f29ba8708
8136771: Implement the license-swap logic as a make target
erikj
parents:
diff
changeset
|
7 |
# published by the Free Software Foundation. Oracle designates this |
712f29ba8708
8136771: Implement the license-swap logic as a make target
erikj
parents:
diff
changeset
|
8 |
# particular file as subject to the "Classpath" exception as provided |
712f29ba8708
8136771: Implement the license-swap logic as a make target
erikj
parents:
diff
changeset
|
9 |
# by Oracle in the LICENSE file that accompanied this code. |
712f29ba8708
8136771: Implement the license-swap logic as a make target
erikj
parents:
diff
changeset
|
10 |
# |
712f29ba8708
8136771: Implement the license-swap logic as a make target
erikj
parents:
diff
changeset
|
11 |
# This code is distributed in the hope that it will be useful, but WITHOUT |
712f29ba8708
8136771: Implement the license-swap logic as a make target
erikj
parents:
diff
changeset
|
12 |
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
712f29ba8708
8136771: Implement the license-swap logic as a make target
erikj
parents:
diff
changeset
|
13 |
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
712f29ba8708
8136771: Implement the license-swap logic as a make target
erikj
parents:
diff
changeset
|
14 |
# version 2 for more details (a copy is included in the LICENSE file that |
712f29ba8708
8136771: Implement the license-swap logic as a make target
erikj
parents:
diff
changeset
|
15 |
# accompanied this code). |
712f29ba8708
8136771: Implement the license-swap logic as a make target
erikj
parents:
diff
changeset
|
16 |
# |
712f29ba8708
8136771: Implement the license-swap logic as a make target
erikj
parents:
diff
changeset
|
17 |
# You should have received a copy of the GNU General Public License version |
712f29ba8708
8136771: Implement the license-swap logic as a make target
erikj
parents:
diff
changeset
|
18 |
# 2 along with this work; if not, write to the Free Software Foundation, |
712f29ba8708
8136771: Implement the license-swap logic as a make target
erikj
parents:
diff
changeset
|
19 |
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
712f29ba8708
8136771: Implement the license-swap logic as a make target
erikj
parents:
diff
changeset
|
20 |
# |
712f29ba8708
8136771: Implement the license-swap logic as a make target
erikj
parents:
diff
changeset
|
21 |
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
712f29ba8708
8136771: Implement the license-swap logic as a make target
erikj
parents:
diff
changeset
|
22 |
# or visit www.oracle.com if you need additional information or have any |
712f29ba8708
8136771: Implement the license-swap logic as a make target
erikj
parents:
diff
changeset
|
23 |
# questions. |
712f29ba8708
8136771: Implement the license-swap logic as a make target
erikj
parents:
diff
changeset
|
24 |
# |
712f29ba8708
8136771: Implement the license-swap logic as a make target
erikj
parents:
diff
changeset
|
25 |
|
712f29ba8708
8136771: Implement the license-swap logic as a make target
erikj
parents:
diff
changeset
|
26 |
include $(SPEC) |
712f29ba8708
8136771: Implement the license-swap logic as a make target
erikj
parents:
diff
changeset
|
27 |
include MakeBase.gmk |
712f29ba8708
8136771: Implement the license-swap logic as a make target
erikj
parents:
diff
changeset
|
28 |
|
51553
867acd5a4140
8210008: custom extension for make/SourceRevision.gmk
twisti
parents:
47314
diff
changeset
|
29 |
$(eval $(call IncludeCustomExtension, SourceRevision-pre.gmk)) |
47217 | 30 |
|
42282
faf3b6722c44
8031567: Better model for storing source revision information
ihse
parents:
39110
diff
changeset
|
31 |
################################################################################ |
faf3b6722c44
8031567: Better model for storing source revision information
ihse
parents:
39110
diff
changeset
|
32 |
# Keep track of what source revision is used to create the build, by creating |
faf3b6722c44
8031567: Better model for storing source revision information
ihse
parents:
39110
diff
changeset
|
33 |
# a tracker file in the output directory. This tracker file is included in the |
51676
5a1be00ea4f6
8210283: Support git as an SCM alternative in the build
erikj
parents:
51553
diff
changeset
|
34 |
# source image, and can be used to recreate the source revision used. |
42282
faf3b6722c44
8031567: Better model for storing source revision information
ihse
parents:
39110
diff
changeset
|
35 |
# |
51676
5a1be00ea4f6
8210283: Support git as an SCM alternative in the build
erikj
parents:
51553
diff
changeset
|
36 |
# We're either building directly from an SCM repository, and if so, use the |
5a1be00ea4f6
8210283: Support git as an SCM alternative in the build
erikj
parents:
51553
diff
changeset
|
37 |
# current revision from that SCM. Otherwise, we are building from a source |
5a1be00ea4f6
8210283: Support git as an SCM alternative in the build
erikj
parents:
51553
diff
changeset
|
38 |
# bundle. As a part of creating this source bundle, the current SCM revisions of |
5a1be00ea4f6
8210283: Support git as an SCM alternative in the build
erikj
parents:
51553
diff
changeset
|
39 |
# all repos will be stored in a file in the top dir, which is then used when |
5a1be00ea4f6
8210283: Support git as an SCM alternative in the build
erikj
parents:
51553
diff
changeset
|
40 |
# creating the tracker file. |
42282
faf3b6722c44
8031567: Better model for storing source revision information
ihse
parents:
39110
diff
changeset
|
41 |
|
faf3b6722c44
8031567: Better model for storing source revision information
ihse
parents:
39110
diff
changeset
|
42 |
STORED_SOURCE_REVISION := $(TOPDIR)/.src-rev |
faf3b6722c44
8031567: Better model for storing source revision information
ihse
parents:
39110
diff
changeset
|
43 |
|
51676
5a1be00ea4f6
8210283: Support git as an SCM alternative in the build
erikj
parents:
51553
diff
changeset
|
44 |
USE_SCM := false |
42282
faf3b6722c44
8031567: Better model for storing source revision information
ihse
parents:
39110
diff
changeset
|
45 |
ifneq ($(and $(HG), $(wildcard $(TOPDIR)/.hg)), ) |
51676
5a1be00ea4f6
8210283: Support git as an SCM alternative in the build
erikj
parents:
51553
diff
changeset
|
46 |
USE_SCM := true |
5a1be00ea4f6
8210283: Support git as an SCM alternative in the build
erikj
parents:
51553
diff
changeset
|
47 |
SCM_DIR := .hg |
5a1be00ea4f6
8210283: Support git as an SCM alternative in the build
erikj
parents:
51553
diff
changeset
|
48 |
ID_COMMAND := $(PRINTF) "hg:%s" "$$($(HG) id -i)" |
5a1be00ea4f6
8210283: Support git as an SCM alternative in the build
erikj
parents:
51553
diff
changeset
|
49 |
else ifneq ($(and $(GIT), $(wildcard $(TOPDIR)/.git)), ) |
5a1be00ea4f6
8210283: Support git as an SCM alternative in the build
erikj
parents:
51553
diff
changeset
|
50 |
USE_SCM := true |
5a1be00ea4f6
8210283: Support git as an SCM alternative in the build
erikj
parents:
51553
diff
changeset
|
51 |
SCM_DIR := .git |
5a1be00ea4f6
8210283: Support git as an SCM alternative in the build
erikj
parents:
51553
diff
changeset
|
52 |
ID_COMMAND := $(PRINTF) "git:%s%s\n" \ |
5a1be00ea4f6
8210283: Support git as an SCM alternative in the build
erikj
parents:
51553
diff
changeset
|
53 |
"$$(git log -n1 --format=%H | cut -c1-12)" \ |
5a1be00ea4f6
8210283: Support git as an SCM alternative in the build
erikj
parents:
51553
diff
changeset
|
54 |
"$$(if test -n "$$(git status --porcelain)"; then printf '+'; fi)" |
5a1be00ea4f6
8210283: Support git as an SCM alternative in the build
erikj
parents:
51553
diff
changeset
|
55 |
endif |
5a1be00ea4f6
8210283: Support git as an SCM alternative in the build
erikj
parents:
51553
diff
changeset
|
56 |
|
5a1be00ea4f6
8210283: Support git as an SCM alternative in the build
erikj
parents:
51553
diff
changeset
|
57 |
ifeq ($(USE_SCM), true) |
42282
faf3b6722c44
8031567: Better model for storing source revision information
ihse
parents:
39110
diff
changeset
|
58 |
|
faf3b6722c44
8031567: Better model for storing source revision information
ihse
parents:
39110
diff
changeset
|
59 |
# Verify that the entire forest is consistent |
faf3b6722c44
8031567: Better model for storing source revision information
ihse
parents:
39110
diff
changeset
|
60 |
$(foreach repo, $(call FindAllReposRel), \ |
51676
5a1be00ea4f6
8210283: Support git as an SCM alternative in the build
erikj
parents:
51553
diff
changeset
|
61 |
$(if $(wildcard $(TOPDIR)/$(repo)/$(SCM_DIR)),, \ |
5a1be00ea4f6
8210283: Support git as an SCM alternative in the build
erikj
parents:
51553
diff
changeset
|
62 |
$(error Inconsistent revision control: $(repo) is missing $(SCM_DIR) directory)) \ |
42282
faf3b6722c44
8031567: Better model for storing source revision information
ihse
parents:
39110
diff
changeset
|
63 |
) |
39110
712f29ba8708
8136771: Implement the license-swap logic as a make target
erikj
parents:
diff
changeset
|
64 |
|
42282
faf3b6722c44
8031567: Better model for storing source revision information
ihse
parents:
39110
diff
changeset
|
65 |
# Replace "." with "_top" and "/" with "-" |
faf3b6722c44
8031567: Better model for storing source revision information
ihse
parents:
39110
diff
changeset
|
66 |
MakeFilenameFromRepo = \ |
faf3b6722c44
8031567: Better model for storing source revision information
ihse
parents:
39110
diff
changeset
|
67 |
$(strip $(subst .,top, $(subst /,-, $1))) |
39110
712f29ba8708
8136771: Implement the license-swap logic as a make target
erikj
parents:
diff
changeset
|
68 |
|
42282
faf3b6722c44
8031567: Better model for storing source revision information
ihse
parents:
39110
diff
changeset
|
69 |
################################################################################ |
faf3b6722c44
8031567: Better model for storing source revision information
ihse
parents:
39110
diff
changeset
|
70 |
# SetupGetRevisionForRepo defines a make rule for creating a file containing |
51676
5a1be00ea4f6
8210283: Support git as an SCM alternative in the build
erikj
parents:
51553
diff
changeset
|
71 |
# the name of the repository and the output of the scm command for that |
5a1be00ea4f6
8210283: Support git as an SCM alternative in the build
erikj
parents:
51553
diff
changeset
|
72 |
# repository. |
5a1be00ea4f6
8210283: Support git as an SCM alternative in the build
erikj
parents:
51553
diff
changeset
|
73 |
# |
42282
faf3b6722c44
8031567: Better model for storing source revision information
ihse
parents:
39110
diff
changeset
|
74 |
# Argument 1 is the relative path to the repository from the top dir. |
faf3b6722c44
8031567: Better model for storing source revision information
ihse
parents:
39110
diff
changeset
|
75 |
# |
faf3b6722c44
8031567: Better model for storing source revision information
ihse
parents:
39110
diff
changeset
|
76 |
SetupGetRevisionForRepo = $(NamedParamsMacroTemplate) |
faf3b6722c44
8031567: Better model for storing source revision information
ihse
parents:
39110
diff
changeset
|
77 |
define SetupGetRevisionForRepoBody |
faf3b6722c44
8031567: Better model for storing source revision information
ihse
parents:
39110
diff
changeset
|
78 |
$1_REPO_PATH := $$(TOPDIR)/$$(strip $1) |
faf3b6722c44
8031567: Better model for storing source revision information
ihse
parents:
39110
diff
changeset
|
79 |
$1_FILENAME := $$(call MakeFilenameFromRepo, $1) |
faf3b6722c44
8031567: Better model for storing source revision information
ihse
parents:
39110
diff
changeset
|
80 |
|
faf3b6722c44
8031567: Better model for storing source revision information
ihse
parents:
39110
diff
changeset
|
81 |
$$(SUPPORT_OUTPUTDIR)/src-rev/$$($1_FILENAME): FRC |
42283 | 82 |
$$(call MakeDir, $$(@D)) |
51676
5a1be00ea4f6
8210283: Support git as an SCM alternative in the build
erikj
parents:
51553
diff
changeset
|
83 |
$$(ECHO) $$(strip $1):`$$(CD) $$($1_REPO_PATH) && $$(ID_COMMAND)` > $$@ |
42282
faf3b6722c44
8031567: Better model for storing source revision information
ihse
parents:
39110
diff
changeset
|
84 |
|
faf3b6722c44
8031567: Better model for storing source revision information
ihse
parents:
39110
diff
changeset
|
85 |
REPO_REVISIONS += $$(SUPPORT_OUTPUTDIR)/src-rev/$$($1_FILENAME) |
faf3b6722c44
8031567: Better model for storing source revision information
ihse
parents:
39110
diff
changeset
|
86 |
endef |
faf3b6722c44
8031567: Better model for storing source revision information
ihse
parents:
39110
diff
changeset
|
87 |
|
faf3b6722c44
8031567: Better model for storing source revision information
ihse
parents:
39110
diff
changeset
|
88 |
# Setup rules for all repos. This makes sure all the "hg id" calls are made |
faf3b6722c44
8031567: Better model for storing source revision information
ihse
parents:
39110
diff
changeset
|
89 |
# in parallel. |
faf3b6722c44
8031567: Better model for storing source revision information
ihse
parents:
39110
diff
changeset
|
90 |
$(foreach repo, $(call FindAllReposRel), \ |
faf3b6722c44
8031567: Better model for storing source revision information
ihse
parents:
39110
diff
changeset
|
91 |
$(eval $(call SetupGetRevisionForRepo, $(repo))) \ |
faf3b6722c44
8031567: Better model for storing source revision information
ihse
parents:
39110
diff
changeset
|
92 |
) |
39110
712f29ba8708
8136771: Implement the license-swap logic as a make target
erikj
parents:
diff
changeset
|
93 |
|
42282
faf3b6722c44
8031567: Better model for storing source revision information
ihse
parents:
39110
diff
changeset
|
94 |
# Create a complete source revision output file from all repos |
faf3b6722c44
8031567: Better model for storing source revision information
ihse
parents:
39110
diff
changeset
|
95 |
# Param 1: The output file |
faf3b6722c44
8031567: Better model for storing source revision information
ihse
parents:
39110
diff
changeset
|
96 |
define CreateSourceRevisionFile |
faf3b6722c44
8031567: Better model for storing source revision information
ihse
parents:
39110
diff
changeset
|
97 |
$1: $$(REPO_REVISIONS) |
42283 | 98 |
$$(call MakeDir, $$(@D)) |
42282
faf3b6722c44
8031567: Better model for storing source revision information
ihse
parents:
39110
diff
changeset
|
99 |
$$(ECHO) `$$(CAT) $$(REPO_REVISIONS)` > $$@.tmp |
faf3b6722c44
8031567: Better model for storing source revision information
ihse
parents:
39110
diff
changeset
|
100 |
if [ ! -f $$@ ] || [ "`$$(CAT) $$@`" != "`$$(CAT) $$@.tmp`" ]; then \ |
faf3b6722c44
8031567: Better model for storing source revision information
ihse
parents:
39110
diff
changeset
|
101 |
$$(MV) $$@.tmp $$@ ; \ |
faf3b6722c44
8031567: Better model for storing source revision information
ihse
parents:
39110
diff
changeset
|
102 |
else \ |
faf3b6722c44
8031567: Better model for storing source revision information
ihse
parents:
39110
diff
changeset
|
103 |
$$(RM) $$@.tmp ; \ |
faf3b6722c44
8031567: Better model for storing source revision information
ihse
parents:
39110
diff
changeset
|
104 |
fi |
faf3b6722c44
8031567: Better model for storing source revision information
ihse
parents:
39110
diff
changeset
|
105 |
endef |
faf3b6722c44
8031567: Better model for storing source revision information
ihse
parents:
39110
diff
changeset
|
106 |
|
faf3b6722c44
8031567: Better model for storing source revision information
ihse
parents:
39110
diff
changeset
|
107 |
$(eval $(call CreateSourceRevisionFile, $(STORED_SOURCE_REVISION))) |
faf3b6722c44
8031567: Better model for storing source revision information
ihse
parents:
39110
diff
changeset
|
108 |
|
51676
5a1be00ea4f6
8210283: Support git as an SCM alternative in the build
erikj
parents:
51553
diff
changeset
|
109 |
scm-store-source-revision: $(STORED_SOURCE_REVISION) |
42282
faf3b6722c44
8031567: Better model for storing source revision information
ihse
parents:
39110
diff
changeset
|
110 |
|
faf3b6722c44
8031567: Better model for storing source revision information
ihse
parents:
39110
diff
changeset
|
111 |
$(eval $(call CreateSourceRevisionFile, $(SOURCE_REVISION_TRACKER))) |
faf3b6722c44
8031567: Better model for storing source revision information
ihse
parents:
39110
diff
changeset
|
112 |
|
51676
5a1be00ea4f6
8210283: Support git as an SCM alternative in the build
erikj
parents:
51553
diff
changeset
|
113 |
scm-create-source-revision-tracker: $(SOURCE_REVISION_TRACKER) |
51553
867acd5a4140
8210008: custom extension for make/SourceRevision.gmk
twisti
parents:
47314
diff
changeset
|
114 |
|
51676
5a1be00ea4f6
8210283: Support git as an SCM alternative in the build
erikj
parents:
51553
diff
changeset
|
115 |
STORE_SOURCE_REVISION_TARGET := scm-store-source-revision |
5a1be00ea4f6
8210283: Support git as an SCM alternative in the build
erikj
parents:
51553
diff
changeset
|
116 |
CREATE_SOURCE_REVISION_TRACKER_TARGET := scm-create-source-revision-tracker |
5a1be00ea4f6
8210283: Support git as an SCM alternative in the build
erikj
parents:
51553
diff
changeset
|
117 |
|
5a1be00ea4f6
8210283: Support git as an SCM alternative in the build
erikj
parents:
51553
diff
changeset
|
118 |
.PHONY: scm-store-source-revision scm-create-source-revision-tracker |
42282
faf3b6722c44
8031567: Better model for storing source revision information
ihse
parents:
39110
diff
changeset
|
119 |
|
faf3b6722c44
8031567: Better model for storing source revision information
ihse
parents:
39110
diff
changeset
|
120 |
else |
51676
5a1be00ea4f6
8210283: Support git as an SCM alternative in the build
erikj
parents:
51553
diff
changeset
|
121 |
# Not using any SCM |
42282
faf3b6722c44
8031567: Better model for storing source revision information
ihse
parents:
39110
diff
changeset
|
122 |
|
faf3b6722c44
8031567: Better model for storing source revision information
ihse
parents:
39110
diff
changeset
|
123 |
ifneq ($(wildcard $(STORED_SOURCE_REVISION)), ) |
faf3b6722c44
8031567: Better model for storing source revision information
ihse
parents:
39110
diff
changeset
|
124 |
# We have a stored source revision (.src-rev) |
39110
712f29ba8708
8136771: Implement the license-swap logic as a make target
erikj
parents:
diff
changeset
|
125 |
|
51553
867acd5a4140
8210008: custom extension for make/SourceRevision.gmk
twisti
parents:
47314
diff
changeset
|
126 |
src-store-source-revision: |
51676
5a1be00ea4f6
8210283: Support git as an SCM alternative in the build
erikj
parents:
51553
diff
changeset
|
127 |
$(call LogInfo, No SCM configuration present$(COMMA) not updating .src-rev) |
42282
faf3b6722c44
8031567: Better model for storing source revision information
ihse
parents:
39110
diff
changeset
|
128 |
|
faf3b6722c44
8031567: Better model for storing source revision information
ihse
parents:
39110
diff
changeset
|
129 |
$(SOURCE_REVISION_TRACKER): $(STORED_SOURCE_REVISION) |
faf3b6722c44
8031567: Better model for storing source revision information
ihse
parents:
39110
diff
changeset
|
130 |
$(install-file) |
faf3b6722c44
8031567: Better model for storing source revision information
ihse
parents:
39110
diff
changeset
|
131 |
|
51553
867acd5a4140
8210008: custom extension for make/SourceRevision.gmk
twisti
parents:
47314
diff
changeset
|
132 |
src-create-source-revision-tracker: $(SOURCE_REVISION_TRACKER) |
42282
faf3b6722c44
8031567: Better model for storing source revision information
ihse
parents:
39110
diff
changeset
|
133 |
else |
faf3b6722c44
8031567: Better model for storing source revision information
ihse
parents:
39110
diff
changeset
|
134 |
# We don't have a stored source revision. Can't do anything, really. |
39110
712f29ba8708
8136771: Implement the license-swap logic as a make target
erikj
parents:
diff
changeset
|
135 |
|
51553
867acd5a4140
8210008: custom extension for make/SourceRevision.gmk
twisti
parents:
47314
diff
changeset
|
136 |
src-store-source-revision: |
51676
5a1be00ea4f6
8210283: Support git as an SCM alternative in the build
erikj
parents:
51553
diff
changeset
|
137 |
$(call LogWarn, Error: No SCM configuration present$(COMMA) cannot create .src-rev) |
42282
faf3b6722c44
8031567: Better model for storing source revision information
ihse
parents:
39110
diff
changeset
|
138 |
exit 2 |
39110
712f29ba8708
8136771: Implement the license-swap logic as a make target
erikj
parents:
diff
changeset
|
139 |
|
51553
867acd5a4140
8210008: custom extension for make/SourceRevision.gmk
twisti
parents:
47314
diff
changeset
|
140 |
src-create-source-revision-tracker: |
51676
5a1be00ea4f6
8210283: Support git as an SCM alternative in the build
erikj
parents:
51553
diff
changeset
|
141 |
$(call LogWarn, Warning: No SCM configuration present and no .src-rev) |
42282
faf3b6722c44
8031567: Better model for storing source revision information
ihse
parents:
39110
diff
changeset
|
142 |
endif |
39110
712f29ba8708
8136771: Implement the license-swap logic as a make target
erikj
parents:
diff
changeset
|
143 |
|
51553
867acd5a4140
8210008: custom extension for make/SourceRevision.gmk
twisti
parents:
47314
diff
changeset
|
144 |
STORE_SOURCE_REVISION_TARGET := src-store-source-revision |
867acd5a4140
8210008: custom extension for make/SourceRevision.gmk
twisti
parents:
47314
diff
changeset
|
145 |
CREATE_SOURCE_REVISION_TRACKER_TARGET := src-create-source-revision-tracker |
867acd5a4140
8210008: custom extension for make/SourceRevision.gmk
twisti
parents:
47314
diff
changeset
|
146 |
|
51676
5a1be00ea4f6
8210283: Support git as an SCM alternative in the build
erikj
parents:
51553
diff
changeset
|
147 |
.PHONY: src-store-source-revision src-create-source-revision-tracker |
5a1be00ea4f6
8210283: Support git as an SCM alternative in the build
erikj
parents:
51553
diff
changeset
|
148 |
|
42282
faf3b6722c44
8031567: Better model for storing source revision information
ihse
parents:
39110
diff
changeset
|
149 |
endif |
faf3b6722c44
8031567: Better model for storing source revision information
ihse
parents:
39110
diff
changeset
|
150 |
|
51553
867acd5a4140
8210008: custom extension for make/SourceRevision.gmk
twisti
parents:
47314
diff
changeset
|
151 |
################################################################################ |
867acd5a4140
8210008: custom extension for make/SourceRevision.gmk
twisti
parents:
47314
diff
changeset
|
152 |
|
867acd5a4140
8210008: custom extension for make/SourceRevision.gmk
twisti
parents:
47314
diff
changeset
|
153 |
$(eval $(call IncludeCustomExtension, SourceRevision-post.gmk)) |
867acd5a4140
8210008: custom extension for make/SourceRevision.gmk
twisti
parents:
47314
diff
changeset
|
154 |
|
867acd5a4140
8210008: custom extension for make/SourceRevision.gmk
twisti
parents:
47314
diff
changeset
|
155 |
################################################################################ |
867acd5a4140
8210008: custom extension for make/SourceRevision.gmk
twisti
parents:
47314
diff
changeset
|
156 |
|
867acd5a4140
8210008: custom extension for make/SourceRevision.gmk
twisti
parents:
47314
diff
changeset
|
157 |
store-source-revision: $(STORE_SOURCE_REVISION_TARGET) |
867acd5a4140
8210008: custom extension for make/SourceRevision.gmk
twisti
parents:
47314
diff
changeset
|
158 |
|
867acd5a4140
8210008: custom extension for make/SourceRevision.gmk
twisti
parents:
47314
diff
changeset
|
159 |
create-source-revision-tracker: $(CREATE_SOURCE_REVISION_TRACKER_TARGET) |
42282
faf3b6722c44
8031567: Better model for storing source revision information
ihse
parents:
39110
diff
changeset
|
160 |
|
faf3b6722c44
8031567: Better model for storing source revision information
ihse
parents:
39110
diff
changeset
|
161 |
FRC: # Force target |
faf3b6722c44
8031567: Better model for storing source revision information
ihse
parents:
39110
diff
changeset
|
162 |
|
51553
867acd5a4140
8210008: custom extension for make/SourceRevision.gmk
twisti
parents:
47314
diff
changeset
|
163 |
.PHONY: store-source-revision create-source-revision-tracker |