initial `make check'
Thanks glebfm@ yet again :)
This commit is contained in:
parent
1fc86f6e82
commit
57d31b9c94
5
Makefile
5
Makefile
@ -23,8 +23,9 @@ endif
|
||||
# recursive make considered useful for m-p
|
||||
MAKE += -r --no-print-directory
|
||||
|
||||
.PHONY: clean distclean help
|
||||
clean distclean help:
|
||||
DIRECT_TARGETS := clean distclean check help
|
||||
.PHONY: $(DIRECT_TARGETS)
|
||||
$(DIRECT_TARGETS):
|
||||
@$(MAKE) -f main.mk $@
|
||||
|
||||
export NUM_TARGETS := $(words $(MAKECMDGOALS))
|
||||
|
11
lib/check.mk
Normal file
11
lib/check.mk
Normal file
@ -0,0 +1,11 @@
|
||||
ifndef MKIMAGE_PROFILES
|
||||
$(error this makefile is designed to be included in toplevel one)
|
||||
endif
|
||||
|
||||
check:
|
||||
@find sub.in features.in \
|
||||
-path '*scripts.d/*' \
|
||||
\! \( -perm 755 -o -name .gitignore \) \
|
||||
| while read line; do \
|
||||
echo "chmod 755 $$line"; \
|
||||
done
|
Loading…
Reference in New Issue
Block a user