Makefile, tests/bonsai/scrut.mk: cleanup
This commit is contained in:
parent
941f931f8b
commit
9b699d7298
2
Makefile
2
Makefile
@ -114,7 +114,7 @@ build/bin/false: src/false.c build
|
|||||||
|
|
||||||
.PHONY: fileis
|
.PHONY: fileis
|
||||||
fileis: build/bin/fileis
|
fileis: build/bin/fileis
|
||||||
build/bin/fileis: src/fileis.rs build
|
build/bin/fileis: src/fileis.rs build rustlibs
|
||||||
$(RUSTC) $(RUSTFLAGS) $(RUSTLIBS) -o $@ src/fileis.rs
|
$(RUSTC) $(RUSTFLAGS) $(RUSTLIBS) -o $@ src/fileis.rs
|
||||||
|
|
||||||
.PHONY: fop
|
.PHONY: fop
|
||||||
|
|||||||
@ -8,20 +8,20 @@
|
|||||||
|
|
||||||
.PRAGMA: command_comment
|
.PRAGMA: command_comment
|
||||||
|
|
||||||
.PHONY: scrut_tests
|
.PHONY: fileis_tests
|
||||||
scrut_tests: scrut_help scrut_options
|
fileis_tests: fileis_help fileis_options
|
||||||
|
|
||||||
.PHONY: scrut_help
|
.PHONY: fileis_help
|
||||||
scrut_help: $(BIN)/scrut
|
fileis_help: $(BIN)/fileis
|
||||||
! $(BIN)/scrut -h
|
! $(BIN)/fileis -h
|
||||||
|
|
||||||
.PHONY: scrut_options
|
.PHONY: fileis_options
|
||||||
# scrut tests file attributes, but files of a certain attribute aren't
|
# fileis tests file attributes, but files of a certain attribute aren't
|
||||||
# guaranteed to be present on a system. This test checks all of the files in
|
# guaranteed to be present on a system. This test checks all of the files in
|
||||||
# harakit and, if test(1p) says a file matches a certain attribute, then checks
|
# harakit and, if test(1p) says a file matches a certain attribute, then checks
|
||||||
# scrut.
|
# fileis.
|
||||||
# opts are space-delimited (for command splitting), sel is not
|
# opts are space-delimited (for command splitting), sel is not
|
||||||
scrut_options: $(BIN)/scrut
|
fileis_options: $(BIN)/fileis
|
||||||
set -e; \
|
set -e; \
|
||||||
opts="b c d e f g k p r s u w x L S"; \
|
opts="b c d e f g k p r s u w x L S"; \
|
||||||
sel=; \
|
sel=; \
|
||||||