Skip to content

Commit 700f558

Browse files
rickrick
rick
authored and
rick
committed
tighten up meson includes
1 parent 489d284 commit 700f558

File tree

4 files changed

+15
-16
lines changed

4 files changed

+15
-16
lines changed

.gitmodules

+3
Original file line numberDiff line numberDiff line change
@@ -1027,3 +1027,6 @@
10271027
[submodule "submodules/libnsgif"]
10281028
path = submodules/libnsgif
10291029
url = https://github.com/netsurf-plan9/libnsgif
1030+
[submodule "submodules/optparse99-master"]
1031+
path = submodules/optparse99-master
1032+
url = https://github.com/hippie68/optparse99

etc/introspect.mk

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@ meson-introspect-targets:
55
meson-binaries:
66
@$(MESON) introspect --targets build -i | $(JQ) 'map(select(.type == "executable").filename)|flatten|join("\n")' -Mrc|grep submodules -v|$(XARGS) -I % $(BASENAME) %|$(SORT) -u
77
meson-binaries-paths:
8-
@$(MAKE) meson-binaries | $(XARGS) -I % echo ./build/%/%
8+
@$(MAKE) -s meson-binaries | $(XARGS) -I % echo ./build/%/%
99
meson-introspect-build-files:
1010
@$(MESON) introspect --buildsystem-files build |$(JQ) -rM|grep '"'|$(CUT) -d'"' -f2|$(SORT) -u|$(SED) "s|$(shell pwd)/||g"|$(SORT) -u
1111
meson-get-source-files:
1212
@$(MESON) introspect build --targets|$(JQ) '.[].target_sources[0].sources' -Mrc|$(CUT) -d'"' -f2|$(SORT) -u|$(SED) "s|$(shell pwd)/||g"
1313

1414
meson-get-source-dirs:
15-
@$(MAKE) meson-introspect-build-files -B \
15+
@$(MAKE) -s meson-introspect-build-files -B \
1616
|egrep 'submodules|subprojects|meson/deps' -v|grep 'meson.build'\
1717
|gsed 's|/meson.build$$||g'|grep '^[a-z].*'|sort -u\
1818
|tr '\n' ' '
1919

2020
meson-get-c-files:
21-
@$(FIND) $(shell $(MAKE) meson-get-source-dirs -B) -type f -name "*.c" -or -name "*.h"|sort -u|egrep -v '/\.'
21+
@$(FIND) $(shell $(MAKE) -s meson-get-source-dirs) -type f -name "*.c" -or -name "*.h"|sort -u|egrep -v '/\.'|$(GREP) -v 'meson/deps|submodules|subprojects'

etc/tidy.mk

+8-13
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ TIDIED_FILES ?=*/*.c */*.h */*/*.c */*/*.h */*/test/*.h */*/test/*.c
22
EXCLUDED_TIDIED_FILES = kfc-utils-colors.c|xxxxxxxxx.c
33

44
get-tidied-files-lines-qty:
5-
@wc -l < $(shell $(MAKE) -B get-tidied-files)|grep total|tail -n1|tr -s ' '|cut -d' ' -f2
5+
@wc -l < $(shell $(MAKE) -s get-tidied-files)|grep total|tail -n1|tr -s ' '|cut -d' ' -f2
66
get-tidied-files-qty:
7-
@$(MAKE) -B get-tidied-files|wc -l
7+
@$(MAKE) -s get-tidied-files|wc -l
88
get-tidied-files:
9-
@$(MAKE) -B meson-get-c-files|egrep -v 'meson/deps|submodules|subprojects'
9+
@$(MAKE) -s meson-get-c-files
1010

1111
#$(FIND) -L $(TIDIED_FILES) -type f -maxdepth 3| $(SORT) -u
1212

@@ -18,8 +18,7 @@ uncrustify:
1818
# @make -B get-tidied-files|$(XARGS) -P 10 -I {} $(UNCRUSTIFY) -c ~/repos/c_deps/etc/uncrustify.cfg --replace "{}" 2>/dev/null||true
1919

2020
uncrustify-clean:
21-
true
22-
# @$(FIND) -L . -type f -name "*unc-backup*" |$(GREP) -v 'submodules|subprojects'|$(XARGS) -I % $(REALPATH) % | $(SORT) -u|$(XARGS) -P 10 -I % $(UNLINK) % 2>/dev/null ||true
21+
@$(FIND) . -type f -name "*unc-backup*" |$(GREP) -v 'submodules|subprojects'|$(XARGS) -I % $(REALPATH) % | $(SORT) -u|$(XARGS) -P 10 -I % $(UNLINK) % 2>/dev/null ||true
2322

2423
fix-dbg:
2524
@$(SED) 's|, %[[:space:]].*u);|, %u);|g' -i $(TIDIED_FILES)
@@ -34,25 +33,21 @@ fix-dbg:
3433
@$(SED) 's|, %[[:space:]].*zu);|, %zu);|g' -i $(TIDIED_FILES)
3534

3635
shfmt:
37-
# @if [[ -d scripts ]]; then $(FIND) scripts/*.sh -type f >/dev/null 2>&1 && $(MAKE) -B fmt-scripts 2>/dev/null||true; fi
38-
@true
36+
@if [[ -d scripts ]]; then $(FIND) scripts/*.sh -type f >/dev/null 2>&1 && $(MAKE) -s fmt-scripts 2>/dev/null||true; fi
3937

4038
do-tidy:
41-
true
42-
# @$(MAKE) -B uncrustify uncrustify-clean shfmt fix-dbg 2>/dev/null||true
39+
@$(MAKE) -s uncrustify uncrustify-clean shfmt fix-dbg 2>/dev/null||true
4340

4441
get-tidied-files-stats:
4542
@printf "%s files, %s lines\n" "$(shell make -B get-tidied-files-qty)" "$(shell make -B get-tidied-files-lines-qty)"
4643

4744
do-timed-tidy:
4845
@ts=`$(DATE) +%s%3N` && \
4946
$(ANSI) --yellow "Uncrustifying $(shell make -B get-tidied-files-stats)" && \
50-
$(MAKE) -B do-tidy >&2 && \
47+
$(MAKE) -s do-tidy >&2 && \
5148
end_ts=`$(DATE) +%s%3N` && \
5249
$(ANSI) --up=1 -n --green "Uncrustified $(shell make -B get-tidied-files-stats) in " && \
5350
bc <<< `printf "%s-%s" "$$end_ts" "$$ts"`|tr -d '\n' && \
5451
ansi --blue ms && sleep 1
5552

56-
tidy:
57-
true
58-
# @$(MAKE) -B do-timed-tidy
53+
tidy: do-timed-tidy

submodules/optparse99-master

Submodule optparse99-master added at da60762

0 commit comments

Comments
 (0)