mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
Less verbose output of running make
This commit is contained in:
parent
0120560f13
commit
0323edddd8
|
@ -21,7 +21,7 @@ cpplint-all \
|
||||||
check-badchars
|
check-badchars
|
||||||
|
|
||||||
$(BUILD_DIR):
|
$(BUILD_DIR):
|
||||||
mkdir -p $(BUILD_DIR)
|
@mkdir -p $(BUILD_DIR)
|
||||||
|
|
||||||
#### clean: remove all files generated by the productive rules
|
#### clean: remove all files generated by the productive rules
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
|
@ -54,28 +54,28 @@ show-diff: nodejs/node_modules/remark nodejs/remark/.remarkrc $(SOURCEPATH) $(BU
|
||||||
.PHONY: check-references
|
.PHONY: check-references
|
||||||
check-references: $(SOURCEPATH) $(BUILD_DIR) Makefile
|
check-references: $(SOURCEPATH) $(BUILD_DIR) Makefile
|
||||||
## check references unique
|
## check references unique
|
||||||
rm -f $(BUILD_DIR)/$(SOURCEFILE).uniq
|
@rm -f $(BUILD_DIR)/$(SOURCEFILE).uniq
|
||||||
grep -oP '(?<=<a name=")[^\"]+' $(SOURCEPATH) | uniq -d > $(BUILD_DIR)/$(SOURCEFILE).uniq
|
@grep -oP '(?<=<a name=")[^\"]+' $(SOURCEPATH) | uniq -d > $(BUILD_DIR)/$(SOURCEFILE).uniq
|
||||||
## check if output has data
|
## check if output has data
|
||||||
if [ -s "build/CppCoreGuidelines.md.uniq" ]; then echo 'Found duplicate anchors:'; cat $(BUILD_DIR)/$(SOURCEFILE).uniq; false; fi
|
@if [ -s "build/CppCoreGuidelines.md.uniq" ]; then echo 'Found duplicate anchors:'; cat $(BUILD_DIR)/$(SOURCEFILE).uniq; false; fi
|
||||||
|
|
||||||
.PHONY: check-notabs
|
.PHONY: check-notabs
|
||||||
check-notabs: $(SOURCEPATH) $(BUILD_DIR) Makefile
|
check-notabs: $(SOURCEPATH) $(BUILD_DIR) Makefile
|
||||||
# find lines with tabs
|
# find lines with tabs
|
||||||
# old file still might be around
|
# old file still might be around
|
||||||
rm -f $(BUILD_DIR)/CppCoreGuidelines.md.tabs
|
@rm -f $(BUILD_DIR)/CppCoreGuidelines.md.tabs
|
||||||
# print file, add line numbers, remove tabs from nl tool, grep for remaining tabs, replace with stars
|
# print file, add line numbers, remove tabs from nl tool, grep for remaining tabs, replace with stars
|
||||||
cat ../CppCoreGuidelines.md | nl -ba | sed -s 's/\(^[^\t]*\)\t/\1--/g' | grep -P '\t' | sed -s 's/\t/\*\*\*\*/g' > $(BUILD_DIR)/CppCoreGuidelines.md.tabs
|
@cat ../CppCoreGuidelines.md | nl -ba | sed -s 's/\(^[^\t]*\)\t/\1--/g' | grep -P '\t' | sed -s 's/\t/\*\*\*\*/g' > $(BUILD_DIR)/CppCoreGuidelines.md.tabs
|
||||||
if [ -s $(BUILD_DIR)/CppCoreGuidelines.md.tabs ]; then echo 'Warning: Tabs found:'; cat $(BUILD_DIR)/CppCoreGuidelines.md.tabs; false; fi;
|
@if [ -s $(BUILD_DIR)/CppCoreGuidelines.md.tabs ]; then echo 'Warning: Tabs found:'; cat $(BUILD_DIR)/CppCoreGuidelines.md.tabs; false; fi;
|
||||||
|
|
||||||
.PHONY: check-badchars
|
.PHONY: check-badchars
|
||||||
check-badchars: $(SOURCEPATH) $(BUILD_DIR) Makefile
|
check-badchars: $(SOURCEPATH) $(BUILD_DIR) Makefile
|
||||||
# find lines with tabs
|
# find lines with tabs
|
||||||
# old file still might be around
|
# old file still might be around
|
||||||
rm -f $(BUILD_DIR)/CppCoreGuidelines.md.badchars
|
@rm -f $(BUILD_DIR)/CppCoreGuidelines.md.badchars
|
||||||
# print file, add line numbers, grep for bad chars
|
# print file, add line numbers, grep for bad chars
|
||||||
cat ../CppCoreGuidelines.md | nl -ba | grep -P '’|‘|”|“|¸|–|…|¦' > $(BUILD_DIR)/CppCoreGuidelines.md.badchars || true
|
@cat ../CppCoreGuidelines.md | nl -ba | grep -P '’|‘|”|“|¸|–|…|¦' > $(BUILD_DIR)/CppCoreGuidelines.md.badchars || true
|
||||||
if [ -s $(BUILD_DIR)/CppCoreGuidelines.md.badchars ]; then echo 'Warning: Undesired chars (–’‘“”¸…¦) found, use straight quotes instead:'; cat $(BUILD_DIR)/CppCoreGuidelines.md.badchars; false; fi;
|
@if [ -s $(BUILD_DIR)/CppCoreGuidelines.md.badchars ]; then echo 'Warning: Undesired chars (–’‘“”¸…¦) found, use straight quotes instead:'; cat $(BUILD_DIR)/CppCoreGuidelines.md.badchars; false; fi;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -88,7 +88,7 @@ cpplint-all: $(BUILD_DIR)/codeblocks $(BUILD_DIR)/Makefile python/Makefile.in
|
||||||
#### generic makefile for sourceblocks (need to be evaluated after c++ file generation)
|
#### generic makefile for sourceblocks (need to be evaluated after c++ file generation)
|
||||||
|
|
||||||
$(BUILD_DIR)/Makefile: python/Makefile.in
|
$(BUILD_DIR)/Makefile: python/Makefile.in
|
||||||
cp python/Makefile.in $(BUILD_DIR)/codeblocks/Makefile
|
@cp python/Makefile.in $(BUILD_DIR)/codeblocks/Makefile
|
||||||
|
|
||||||
#### split md file into plain text and code
|
#### split md file into plain text and code
|
||||||
|
|
||||||
|
@ -98,7 +98,7 @@ $(BUILD_DIR)/plain.txt: splitfile
|
||||||
|
|
||||||
.PHONY: splitfile
|
.PHONY: splitfile
|
||||||
splitfile: $(SOURCEPATH) ./python/md-split.py
|
splitfile: $(SOURCEPATH) ./python/md-split.py
|
||||||
python ./python/md-split.py $(SOURCEPATH) $(BUILD_DIR)/plain.txt $(BUILD_DIR)/codeblocks
|
@python ./python/md-split.py $(SOURCEPATH) $(BUILD_DIR)/plain.txt $(BUILD_DIR)/codeblocks
|
||||||
|
|
||||||
#### install npm modules
|
#### install npm modules
|
||||||
# install/update npm dependencies defined in file package.json
|
# install/update npm dependencies defined in file package.json
|
||||||
|
|
Loading…
Reference in New Issue
Block a user