summaryrefslogtreecommitdiff
path: root/Makefile.am
blob: 90b83e0076f5122aa01b92502aa9d187c9e03398 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
aclocaldir = $(prefix)/share/aclocal

# sorted, please
dist_aclocal_DATA = \
	autoconf-archive/m4/ax_append_compile_flags.m4			\
	autoconf-archive/m4/ax_append_link_flags.m4			\
	autoconf-archive/m4/ax_append_flag.m4				\
	autoconf-archive/m4/ax_check_compile_flag.m4			\
	autoconf-archive/m4/ax_check_define.m4				\
	autoconf-archive/m4/ax_check_enable_debug.m4			\
	autoconf-archive/m4/ax_check_girs_gjs.m4			\
	autoconf-archive/m4/ax_check_gir_symbols_gjs.m4			\
	autoconf-archive/m4/ax_check_link_flag.m4			\
	autoconf-archive/m4/ax_is_release.m4				\
	autoconf-archive/m4/ax_code_coverage.m4				\
	autoconf-archive/m4/ax_compiler_flags.m4			\
	autoconf-archive/m4/ax_compiler_flags_cflags.m4			\
	autoconf-archive/m4/ax_compiler_flags_cxxflags.m4		\
	autoconf-archive/m4/ax_compiler_flags_ldflags.m4		\
	autoconf-archive/m4/ax_compiler_flags_gir.m4			\
	autoconf-archive/m4/ax_cxx_compile_stdcxx.m4			\
	autoconf-archive/m4/ax_cxx_compile_stdcxx_0x.m4			\
	autoconf-archive/m4/ax_cxx_compile_stdcxx_11.m4			\
	autoconf-archive/m4/ax_cxx_compile_stdcxx_14.m4			\
	autoconf-archive/m4/ax_cxx_compile_stdcxx_17.m4			\
	autoconf-archive/m4/ax_generate_changelog.m4			\
	autoconf-archive/m4/ax_pkg_check_modules.m4			\
	autoconf-archive/m4/ax_prog_gjs.m4				\
	autoconf-archive/m4/ax_require_defined.m4			\
	autoconf-archive/m4/ax_valgrind_check.m4			\
	$(NULL)

# Here, plain m4 is being used to strip 'dnl' comments.
all-local: $(dist_aclocal_DATA)
	cat $^ | grep -v '^#' | grep -v 'AX_PACKAGE_REQUIRES' | grep -v 'AU_ALIAS' | m4 | grep -o '\<AX_[A-Z0-9_]*[A-Z0-9]\>' | sort | uniq > used
	cat $^ | grep ^AC_DEFUN | grep -o '\<AX_[A-Z0-9_]*\>' | sort | uniq > defined
	diff -u used defined
	rm -f used defined

dist-hook:
	@echo
	@echo
	@echo "       Don't dist this package.  See README."
	@echo
	@echo
	@false