initial `make check'

Thanks glebfm@ yet again :)
This commit is contained in:
Michael Shigorin 2012-04-24 11:11:04 +03:00
parent 1fc86f6e82
commit 57d31b9c94
2 changed files with 14 additions and 2 deletions

View File

@ -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
View 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