Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@ global.json: $(TOP)/dotnet.config Makefile $(GIT_DIRECTORY)/HEAD $(GIT_DIRECTORY
printf " \"sdk\": {\n \"version\": \"$(DOTNET_VERSION)\"\n }\n" >> $@; \
printf "}\n" >> $@

install-hook::
$(Q) if ! git diff --exit-code global.json; then \
echo "Error: global.json has changed: please commit the changes."; \
exit 1; \
fi

install-hook::
@$(MAKE) check-permissions
ifdef INCLUDE_IOS
Expand Down