]> code.delx.au - gnu-emacs-elpa/blob - packages/loc-changes/Makefile.am
Merge commit '0cda39255827f283e7578cd469ae42daad9556a2' from js2-mode
[gnu-emacs-elpa] / packages / loc-changes / Makefile.am
1 lispdir = @lispdir@
2
3 lisp_files := $(wildcard *.el)
4 lisp_LISP = $(lisp_files)
5
6 include common.mk
7
8 EXTRA_DIST = $(lisp_files) $(test_files) README.md THANKS
9
10 test_files := $(wildcard test/test-*.el)
11
12 if MAINTAINER_MODE
13
14 CL = ChangeLog
15 ChangeLog:
16 git log --pretty --numstat --summary | $(GIT2CL) > $@
17
18 ACLOCAL_AMFLAGS=-I .
19
20 endif
21
22 #: Run all tests
23 test: check
24
25 #: Run all tests without bloated output
26 check-short:
27 $(MAKE) check 2>&1 | ruby test/make-check-filter.rb
28
29 check:
30 $(MAKE) -C test $@
31
32 CR_EXCEPTIONS=copyright_exceptions
33 #: Check for GNU Copyrights.
34 check_copyrights:
35 @echo "Compute exceptions >$(CR_EXCEPTIONS)~"
36 @export LANG=C; \
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 | \
41 while read f; do \
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" \
46 "$$f"; \
47 done | sort >$(CR_EXCEPTIONS)~
48 diff -u "$(CR_EXCEPTIONS)" "$(CR_EXCEPTIONS)~"