3 lisp_files := $(wildcard *.el)
4 lisp_LISP = $(lisp_files)
8 EXTRA_DIST = $(lisp_files) $(test_files) README.md THANKS
10 test_files := $(wildcard test/test-*.el)
16 git log --pretty --numstat --summary | $(GIT2CL) > $@
25 #: Run all tests without bloated output
27 $(MAKE) check 2>&1 | ruby test/make-check-filter.rb
32 CR_EXCEPTIONS=copyright_exceptions
33 #: Check for GNU Copyrights.
35 @echo "Compute exceptions >$(CR_EXCEPTIONS)~"
37 find . -name '.git' -prune -o -name '*.el' -print0 | \
38 xargs -0 grep -L 'Free Software Foundation, Inc' | \
39 grep -v '\(\.dir-locals\|.-\(pkg\|autoloads\)\)\.el$$'; \
40 find . -name '.git' -prune -o -name '*.el' -print | \
42 fquoted="$$(echo $$f|tr '|' '_')"; \
43 sed -n -e '/[Cc]opyright.*, *[1-9][-0-9]*,\?$$/N' \
44 -e '/Free Software Foundation/d' \
45 -e "s|^\\(.*[Cc]opyright\\)|$$fquoted:\\1|p" \
47 done | sort >$(CR_EXCEPTIONS)~
48 diff -u "$(CR_EXCEPTIONS)" "$(CR_EXCEPTIONS)~"