[versions.mk] Make path to SUBMODULES.json based on srcdir (#3314)
[mono.git] / acceptance-tests / versions.mk
1 .PHONY: validate-versions reset-versions
2
3 SUBMODULES_CONFIG_FILE = $(top_srcdir)/acceptance-tests/SUBMODULES.json
4 include $(top_srcdir)/scripts/submodules/versions.mk
5
6 $(eval $(call ValidateVersionTemplate,roslyn,ROSLYN))
7 $(eval $(call ValidateVersionTemplate,coreclr,CORECLR))
8 $(eval $(call ValidateVersionTemplate,ms-test-suite,MSTESTSUITE))
9
10 # Bump the given submodule to the revision given by the REV make variable
11 # If COMMIT is 1, commit the change
12 bump-roslyn: __bump-version-roslyn
13 bump-coreclr: __bump-version-coreclr
14 bump-ms-test-suite: __bump-version-ms-test-suite
15
16 # Bump the given submodule to the branch given by the BRANCH/REMOTE_BRANCH make variables
17 # If COMMIT is 1, commit the change
18 bump-branch-roslyn: __bump-branch-roslyn
19 bump-branch-coreclr: __bump-branch-coreclr
20 bump-branch-ms-test-suite: __bump-branch-ms-test-suite
21
22 # Bump the given submodule to its current GIT version
23 # If COMMIT is 1, commit the change
24 bump-current-roslyn: __bump-current-version-roslyn
25 bump-current-coreclr: __bump-current-version-coreclr
26 bump-current-ms-test-suite: __bump-current-version-ms-test-suite
27
28 commit-bump-roslyn:
29         $(MAKE) bump-roslyn COMMIT=1
30
31 commit-bump-coreclr:
32         $(MAKE) bump-coreclr COMMIT=1
33
34 commit-bump-ms-test-suite:
35         $(MAKE) bump-ms-test-suite COMMIT=1
36
37 commit-bump-current-roslyn:
38         $(MAKE) bump-current-roslyn COMMIT=1
39
40 commit-bump-current-coreclr:
41         $(MAKE) bump-current-coreclr COMMIT=1
42
43 commit-bump-current-ms-test-suite:
44         $(MAKE) bump-current-ms-test-suite COMMIT=1