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