diff options
| author | Baptiste Daroussin <bapt@FreeBSD.org> | 2025-06-25 15:13:45 +0000 |
|---|---|---|
| committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2025-06-25 15:14:13 +0000 |
| commit | 5f99da5545ebe3c081dc126e00ec7d801db9c772 (patch) | |
| tree | e692d78fdb6bc34a660e9e586c121e03afb8b5ff /Makefile.am | |
| parent | 5c7ba42d2e90bdd94bb55c80d0787e998fad44f9 (diff) | |
Diffstat (limited to 'Makefile.am')
| -rw-r--r-- | Makefile.am | 42 |
1 files changed, 39 insertions, 3 deletions
diff --git a/Makefile.am b/Makefile.am index 4111fdb721a7..551c74071f7a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,18 +1,54 @@ ## Run `./bootstrap` to generate the "Makefile.in" files in this directory and ## the "$SUBDIRS" subdirectories. -SUBDIRS = include src . tests win32 +SUBDIRS = include src . tests -EXTRA_DIST = README LICENSE doc/doxygen.cfg +EXTRA_DIST = Changes ReadMe.md License CMakeLists.txt doc/doxygen.cfg + +LIBYAML_TEST_SUITE_RUN_REPO_DEFAULT := https://github.com/yaml/libyaml +LIBYAML_TEST_SUITE_RUN_REPO ?= $(LIBYAML_TEST_SUITE_RUN_REPO_DEFAULT) +LIBYAML_TEST_SUITE_RUN_BRANCH ?= run-test-suite pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = yaml-0.1.pc maintainer-clean-local: - -rm -f aclocal.m4 config.h.in configure config/* + rm -f aclocal.m4 config.h.in configure config/* -find ${builddir} -name Makefile.in -exec rm -f '{}' ';' +distclean-local: + rm -fr tests/run-test-suite packaging + -git worktree prune + .PHONY: bootstrap bootstrap: maintainer-clean ./bootstrap + ./configure + make + +test: all + make -C tests check-TESTS + +test-suite: tests/run-test-suite all + make -C $< test + +test-all: test test-suite + +tests/run-test-suite: +ifeq ($(LIBYAML_TEST_SUITE_RUN_REPO),$(LIBYAML_TEST_SUITE_RUN_REPO_DEFAULT)) + -git branch --track $(LIBYAML_TEST_SUITE_RUN_BRANCH) origin/$(LIBYAML_TEST_SUITE_RUN_BRANCH) + -git worktree prune + git worktree add $@ $(LIBYAML_TEST_SUITE_RUN_BRANCH) + else + git clone --branch $(LIBYAML_TEST_SUITE_RUN_BRANCH) $(LIBYAML_TEST_SUITE_RUN_REPO) $@ + endif + +packaging: + -git branch --track $@ origin/$@ + git worktree add --force $@ $@ + +docker-dist: packaging + make -C $</docker libyaml-dist +docker-test-pyyaml: packaging + make -C $</docker test-pyyaml |
