mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
Update Makefile
Need a -f parameter if user has done `make distclean`
This commit is contained in:
parent
e2a11312c7
commit
c495084297
@ -52,7 +52,7 @@ show-diff: nodejs/node_modules/remark nodejs/remark/.remarkrc $(SOURCEPATH) $(BU
|
||||
.PHONY: check-references
|
||||
check-references: $(SOURCEPATH) $(BUILD_DIR) Makefile
|
||||
## check references unique
|
||||
rm $(BUILD_DIR)/$(SOURCEFILE).uniq
|
||||
rm -f $(BUILD_DIR)/$(SOURCEFILE).uniq
|
||||
grep -oP '(?<=<a name=")[^\"]+' $(SOURCEPATH) | uniq -d > $(BUILD_DIR)/$(SOURCEFILE).uniq
|
||||
## check if output has data
|
||||
if [ -s "build/CppCoreGuidelines.md.uniq" ]; then echo 'Found duplicate anchors:'; cat $(BUILD_DIR)/$(SOURCEFILE).uniq; false; fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user