]> code.delx.au - gnu-emacs-elpa/blob - packages/load-relative/Makefile.am
Merge commit '0cda39255827f283e7578cd469ae42daad9556a2' from js2-mode
[gnu-emacs-elpa] / packages / load-relative / Makefile.am
1 lisp_files := $(wildcard *.el)
2 lisp_LISP = $(lisp_files)
3
4 PHONY=check check-short clean dist distclean test
5
6 EXTRA_DIST = $(lisp_files) $(test_files) README.md THANKS COPYING
7 GIT2CL ?= git2cl
8
9 #: Run all tests
10 check: $(test-files)
11 $(MAKE) -C test check
12
13 #: Run all tests with minimum verbosity
14 check-short:
15 $(MAKE) -C test check 2>&1 | ruby make-check-filter.rb
16
17
18 #: same as check
19 test: check
20
21 #: same as check-short
22 test-short: check-short
23
24 #: Read this first.
25 README: README.md
26 ln -s README.md README
27
28 if MAINTAINER_MODE
29
30 CL = ChangeLog
31 #: Create a log file from the individual commits via git2cl
32 ChangeLog:
33 git log --pretty --numstat --summary | $(GIT2CL) > $@
34
35 ACLOCAL_AMFLAGS=-I .
36
37 endif
38
39 CR_EXCEPTIONS=copyright_exceptions
40 #: Check for GNU Copyrights.
41 check_copyrights:
42 @echo "Compute exceptions >$(CR_EXCEPTIONS)~"
43 @export LANG=C; \
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 | \
48 while read f; do \
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" \
53 "$$f"; \
54 done | sort >$(CR_EXCEPTIONS)~
55 diff -u "$(CR_EXCEPTIONS)" "$(CR_EXCEPTIONS)~"