| 1 |
.SUFFIXES: |
| 2 |
|
| 3 |
PROFILE?= |
| 4 |
OTHERFLAGS += -w -notation-overridden,-native-compiler-disabled,-ambiguous-paths,-masking-absolute-name |
| 5 |
ifneq ($(PROFILE),) |
| 6 |
OTHERFLAGS += -profile-ltac |
| 7 |
endif |
| 8 |
|
| 9 |
SORT_TACTICS := env LC_COLLATE=C sort |
| 10 |
TACTICS_V_FILE := src/Util/Tactics.v |
| 11 |
EXISTING_TACTICS_CONTENTS_SORTED:=$(shell cat $(TACTICS_V_FILE) 2>&1 | $(SORT_TACTICS)) |
| 12 |
NEW_TACTICS_CONTENTS_SORTED:=$(shell src/Util/make_tactics.sh | $(SORT_TACTICS)) |
| 13 |
|
| 14 |
ifneq ($(EXISTING_TACTICS_CONTENTS_SORTED),$(NEW_TACTICS_CONTENTS_SORTED)) |
| 15 |
.PHONY: $(TACTICS_V_FILE) |
| 16 |
$(TACTICS_V_FILE): |
| 17 |
$(SHOW)'ECHO > $@' |
| 18 |
$(HIDE)src/Util/make_tactics.sh > $@ |
| 19 |
endif |
| 20 |
|
| 21 |
.PHONY: post-all |
| 22 |
post-all:: |
| 23 |
@grep '^\(\w\+/\)\+\w\+\.v$$' _CoqProject \ |
| 24 |
| ( xargs git ls-files --error-unmatch -- 2>&1 >/dev/null || true) \ |
| 25 |
| sed -e 's/error: pathspec/note: _CoqProject entry/' -e '/Did you forget to .git add.?/d' |