• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1## SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
2SUBDIRS = include src tools tests doc bash-completion
3ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
4headers = config.h
5
6m4datadir = $(datadir)/aclocal
7m4data_DATA = $(srcdir)/abigail.m4
8
9pkgconfigdir = $(libdir)/pkgconfig
10pkgconfig_DATA = libabigail.pc
11
12dist_noinst_DATA = default.abignore
13abigaillibdir = $(pkglibdir)
14abigaillib_DATA = default.abignore
15
16#bashcompletiondir = $(datadir)/bash-completion/completions
17#dist_bashcompletion_DATA =
18
19EXTRA_DIST = 			\
20autoconf-archive/ax_check_python_modules.m4 \
21autoconf-archive/ax_prog_python_version.m4 \
22autoconf-archive/ax_compare_version.m4 \
23NEWS README LICENSE.txt license-change-2020.txt \
24COMPILING COMMIT-LOG-GUIDELINES VISIBILITY \
25ChangeLog gen-changelog.py	\
26$(headers) $(m4data_DATA) 	\
27libabigail.pc.in
28
29# automake already tells which subdir is being entered.
30# Don't make make repeat.
31AM_MAKEFLAGS = --no-print-directory
32
33.PHONY: doc
34
35doc: html-doc man info
36
37html-doc:
38	$(MAKE) -C doc html-doc
39	$(MAKE) -C doc/manuals html-doc
40
41man:
42	$(MAKE) -C doc/manuals man
43
44info:
45	$(MAKE) -C doc/manuals info
46
47check-valgrind:
48	$(MAKE) -C tests check-valgrind
49
50check-valgrind-recursive:
51	$(MAKE) -C tests check-valgrind-memcheck-recursive
52
53update-changelog:
54	python $(srcdir)/gen-changelog.py > $(srcdir)/ChangeLog
55
56TARBALL = $(PACKAGE_NAME)-$(VERSION).tar.xz
57RELEASED_BRANCH = master
58
59$(TARBALL): distcheck
60
61tag-release-only:
62	git tag -m "$(PACKAGE_NAME) release $(VERSION)" \
63	"$(PACKAGE_NAME)-$(VERSION)" $(RELEASED_BRANCH)
64
65tag-release: tag-release-only
66
67upload-release-only:
68	scp $(TARBALL) sourceware.org:/var/ftp/pub/libabigail
69
70tarball: $(TARBALL)
71
72upload-release: tarball tag-release upload-release-only
73
74release: upload-release
75
76upload-release: tarball-and-tag-and-upload
77
78tarball-and-tag-and-upload: tarball-and-all
79
80tarball-and-all: tag-and-all
81	$(MAKE) tarball
82
83tag-and-all: distcheck check-self-compare
84	$(MAKE) tag-release-only
85
86# the default for GZIP_ENV is --best, which is pretty slow for check runs
87# distcheck-fast therefore compresses with --fast instead
88distcheck-fast:
89	$(MAKE) distcheck GZIP_ENV="--fast" XZ_OPT="-0"
90
91# This makes us compare libabigail.so against its own ABIXML
92# representation.  It's super slow (more than 5 minutes on one of my
93# old boxes) so I do this only before releases.
94check-self-compare:
95	$(MAKE) -C tests check-self-compare
96
97