Skip to content

Commit 0323edd

Browse files
committed
Less verbose output of running make
1 parent 0120560 commit 0323edd

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

scripts/Makefile

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ cpplint-all \
2121
check-badchars
2222

2323
$(BUILD_DIR):
24-
mkdir -p $(BUILD_DIR)
24+
@mkdir -p $(BUILD_DIR)
2525

2626
#### clean: remove all files generated by the productive rules
2727
.PHONY: clean
@@ -54,28 +54,28 @@ show-diff: nodejs/node_modules/remark nodejs/remark/.remarkrc $(SOURCEPATH) $(BU
5454
.PHONY: check-references
5555
check-references: $(SOURCEPATH) $(BUILD_DIR) Makefile
5656
## check references unique
57-
rm -f $(BUILD_DIR)/$(SOURCEFILE).uniq
58-
grep -oP '(?<=<a name=")[^\"]+' $(SOURCEPATH) | uniq -d > $(BUILD_DIR)/$(SOURCEFILE).uniq
57+
@rm -f $(BUILD_DIR)/$(SOURCEFILE).uniq
58+
@grep -oP '(?<=<a name=")[^\"]+' $(SOURCEPATH) | uniq -d > $(BUILD_DIR)/$(SOURCEFILE).uniq
5959
## check if output has data
60-
if [ -s "build/CppCoreGuidelines.md.uniq" ]; then echo 'Found duplicate anchors:'; cat $(BUILD_DIR)/$(SOURCEFILE).uniq; false; fi
60+
@if [ -s "build/CppCoreGuidelines.md.uniq" ]; then echo 'Found duplicate anchors:'; cat $(BUILD_DIR)/$(SOURCEFILE).uniq; false; fi
6161

6262
.PHONY: check-notabs
6363
check-notabs: $(SOURCEPATH) $(BUILD_DIR) Makefile
6464
# find lines with tabs
6565
# old file still might be around
66-
rm -f $(BUILD_DIR)/CppCoreGuidelines.md.tabs
66+
@rm -f $(BUILD_DIR)/CppCoreGuidelines.md.tabs
6767
# print file, add line numbers, remove tabs from nl tool, grep for remaining tabs, replace with stars
68-
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
69-
if [ -s $(BUILD_DIR)/CppCoreGuidelines.md.tabs ]; then echo 'Warning: Tabs found:'; cat $(BUILD_DIR)/CppCoreGuidelines.md.tabs; false; fi;
68+
@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
69+
@if [ -s $(BUILD_DIR)/CppCoreGuidelines.md.tabs ]; then echo 'Warning: Tabs found:'; cat $(BUILD_DIR)/CppCoreGuidelines.md.tabs; false; fi;
7070

7171
.PHONY: check-badchars
7272
check-badchars: $(SOURCEPATH) $(BUILD_DIR) Makefile
7373
# find lines with tabs
7474
# old file still might be around
75-
rm -f $(BUILD_DIR)/CppCoreGuidelines.md.badchars
75+
@rm -f $(BUILD_DIR)/CppCoreGuidelines.md.badchars
7676
# print file, add line numbers, grep for bad chars
77-
cat ../CppCoreGuidelines.md | nl -ba | grep -P '’|‘|”|“|¸|–|…|¦' > $(BUILD_DIR)/CppCoreGuidelines.md.badchars || true
78-
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;
77+
@cat ../CppCoreGuidelines.md | nl -ba | grep -P '’|‘|”|“|¸|–|…|¦' > $(BUILD_DIR)/CppCoreGuidelines.md.badchars || true
78+
@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;
7979

8080

8181

@@ -88,7 +88,7 @@ cpplint-all: $(BUILD_DIR)/codeblocks $(BUILD_DIR)/Makefile python/Makefile.in
8888
#### generic makefile for sourceblocks (need to be evaluated after c++ file generation)
8989

9090
$(BUILD_DIR)/Makefile: python/Makefile.in
91-
cp python/Makefile.in $(BUILD_DIR)/codeblocks/Makefile
91+
@cp python/Makefile.in $(BUILD_DIR)/codeblocks/Makefile
9292

9393
#### split md file into plain text and code
9494

@@ -98,7 +98,7 @@ $(BUILD_DIR)/plain.txt: splitfile
9898

9999
.PHONY: splitfile
100100
splitfile: $(SOURCEPATH) ./python/md-split.py
101-
python ./python/md-split.py $(SOURCEPATH) $(BUILD_DIR)/plain.txt $(BUILD_DIR)/codeblocks
101+
@python ./python/md-split.py $(SOURCEPATH) $(BUILD_DIR)/plain.txt $(BUILD_DIR)/codeblocks
102102

103103
#### install npm modules
104104
# install/update npm dependencies defined in file package.json

0 commit comments

Comments
 (0)