1 # Note: This makefile include remake-style target comments.
2 # These comments before the targets start with #:
3 # remake --tasks to shows the targets and the comments
8 lisp_files := $(wildcard *.el)
9 lisp_LISP = $(lisp_files)
10 test_files := $(wildcard test/*.el)
12 EXTRA_DIST = $(lisp_files) $(test_files) README THANKS README.md COPYING
14 CHECK_FILES = $(notdir $(test_files:.el=.run))
20 README: README.textile
21 ln -s README.md README
23 PHONY=check check_copyrights clean dist distclean test check-short check-terse install-short
28 git log --pretty --numstat --summary | $(GIT2CL) > $@
38 $(MAKE) -C test check 2>&1 | ruby make-check-filter.rb
40 #: Run all tests without and show just the failure lines
42 $(MAKE) check 2>&1 | $(RUBY) make-check-filter.rb | grep failure
46 $(MAKE) install 2>&1 | $(RUBY) make-check-filter.rb
48 CR_EXCEPTIONS=copyright_exceptions
49 #: Check for GNU Copyrights.
51 @echo "Compute exceptions >$(CR_EXCEPTIONS)~"
53 find . -name '.git' -prune -o -name '*.el' -print0 | \
54 xargs -0 grep -L 'Free Software Foundation, Inc' | \
55 grep -v '\(\.dir-locals\|.-\(pkg\|autoloads\)\)\.el$$'; \
56 find . -name '.git' -prune -o -name '*.el' -print | \
58 fquoted="$$(echo $$f|tr '|' '_')"; \
59 sed -n -e '/[Cc]opyright.*, *[1-9][-0-9]*,\?$$/N' \
60 -e '/Free Software Foundation/d' \
61 -e "s|^\\(.*[Cc]opyright\\)|$$fquoted:\\1|p" \
63 done | sort >$(CR_EXCEPTIONS)~
64 diff -u "$(CR_EXCEPTIONS)" "$(CR_EXCEPTIONS)~"