1 lisp_files := $(wildcard *.el)
2 lisp_LISP = $(lisp_files)
4 PHONY=check check-short clean dist distclean test
6 EXTRA_DIST = $(lisp_files) $(test_files) README.md THANKS COPYING
13 #: Run all tests with minimum verbosity
15 $(MAKE) -C test check 2>&1 | ruby make-check-filter.rb
21 #: same as check-short
22 test-short: check-short
26 ln -s README.md README
31 #: Create a log file from the individual commits via git2cl
33 git log --pretty --numstat --summary | $(GIT2CL) > $@
39 CR_EXCEPTIONS=copyright_exceptions
40 #: Check for GNU Copyrights.
42 @echo "Compute exceptions >$(CR_EXCEPTIONS)~"
44 find . -name '.git' -prune -o -name '*.el' -print0 | \
45 xargs -0 grep -L 'Free Software Foundation, Inc' | \
46 grep -v '\(\.dir-locals\|.-\(pkg\|autoloads\)\)\.el$$'; \
47 find . -name '.git' -prune -o -name '*.el' -print | \
49 fquoted="$$(echo $$f|tr '|' '_')"; \
50 sed -n -e '/[Cc]opyright.*, *[1-9][-0-9]*,\?$$/N' \
51 -e '/Free Software Foundation/d' \
52 -e "s|^\\(.*[Cc]opyright\\)|$$fquoted:\\1|p" \
54 done | sort >$(CR_EXCEPTIONS)~
55 diff -u "$(CR_EXCEPTIONS)" "$(CR_EXCEPTIONS)~"