mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-08-02 05:57:46 +00:00
Merge pull request #548 from jbcrail/add-build-check
Add a new makefile rule to check for build errors.
This commit is contained in:
commit
c50e8ee8cb
2 changed files with 16 additions and 0 deletions
11
Makefile
11
Makefile
|
@ -374,4 +374,15 @@ busytest: $(BUILDDIR)/busybox $(BUILDDIR)/.config
|
||||||
(cd $(BUSYBOX_SRC)/testsuite && bindir=$(BUILDDIR) ./runtest $(RUNTEST_ARGS))
|
(cd $(BUSYBOX_SRC)/testsuite && bindir=$(BUILDDIR) ./runtest $(RUNTEST_ARGS))
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# This rule will build each program, ignore all output, and return pass
|
||||||
|
# or fail depending on whether the build has errors.
|
||||||
|
build-check:
|
||||||
|
@for prog in $(sort $(PROGS)); do \
|
||||||
|
make BUILD="$$prog" >/dev/null 2>&1; status=$$?; \
|
||||||
|
if [ $$status -eq 0 ]; \
|
||||||
|
then printf "%-10s\t\033[1;32mpass\033[00;m\n" $$prog; \
|
||||||
|
else printf "%-10s\t\033[1;31mfail\033[00;m\n" $$prog; \
|
||||||
|
fi; \
|
||||||
|
done
|
||||||
|
|
||||||
.PHONY: $(TEMPDIR) all deps test distclean clean busytest install uninstall
|
.PHONY: $(TEMPDIR) all deps test distclean clean busytest install uninstall
|
||||||
|
|
|
@ -41,6 +41,11 @@ To build with LTO and stripping:
|
||||||
make ENABLE_LTO=y ENABLE_STRIP=y
|
make ENABLE_LTO=y ENABLE_STRIP=y
|
||||||
```
|
```
|
||||||
|
|
||||||
|
To check all available utilities for build errors:
|
||||||
|
```
|
||||||
|
make build-check
|
||||||
|
```
|
||||||
|
|
||||||
Installation Instructions
|
Installation Instructions
|
||||||
-------------------------
|
-------------------------
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue