-
Notifications
You must be signed in to change notification settings - Fork 21
/
Makefile
39 lines (31 loc) · 1.25 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
TOP=.
GIT_DIR=$(TOP)/.git
export BTFS_TOP=$(PWD)
all: check-system
./devops/automation/build.sh
include $(TOP)/Make.config
provision:
./devops/automation/provision-deps.sh
som binding-tools-for-swift:
./devops/automation/build.sh
Constants.cs: Constants.cs.in $(GIT_DIR)/index Makefile
sed \
-e "s/@VERSION@/$(SOM_PACKAGE_VERSION)/g" \
-e "s/@BRANCH@/$(SOM_BRANCH)/g" \
-e "s/@HASH@/$(shell git log -1 --pretty=%h)/g" \
$< > $@
package:
./devops/automation/build-package.sh
print-variable:
@echo $($(VARIABLE))
check-system:
# when CI got shut off, this stopped working. When CI gets brought back
# online, check this issue: https://github.com/xamarin/binding-tools-for-swift/issues/772
# @if (( $(SOM_COMMIT_DISTANCE) > 999 )); then \
# echo "$(COLOR_RED)*** The commit distance for Binding Tools For Swift ($(SOM_COMMIT_DISTANCE)) is > 999.$(COLOR_CLEAR)"; \
# echo "$(COLOR_RED)*** To fix this problem, bump the revision ($(COLOR_GRAY)SOM_PACKAGE_VERSION_REV$(COLOR_RED)) in Make.config.$(COLOR_CLEAR)"; \
# echo "$(COLOR_RED)*** Once fixed, you need to commit the changes for them to pass this check.$(COLOR_CLEAR)"; \
# exit 1; \
# fi
@./devops/automation/system-dependencies.sh
@echo "Building Binding Tools For Swift $(SOM_PACKAGE_VERSION)"