1## Run `./bootstrap` to generate the "Makefile.in" files in this directory and 2## the "$SUBDIRS" subdirectories. 3 4SUBDIRS = include src . tests 5 6EXTRA_DIST = Changes ReadMe.md License CMakeLists.txt doc/doxygen.cfg 7 8LIBYAML_TEST_SUITE_RUN_REPO_DEFAULT := https://github.com/yaml/libyaml 9LIBYAML_TEST_SUITE_RUN_REPO ?= $(LIBYAML_TEST_SUITE_RUN_REPO_DEFAULT) 10LIBYAML_TEST_SUITE_RUN_BRANCH ?= run-test-suite 11 12pkgconfigdir = $(libdir)/pkgconfig 13pkgconfig_DATA = yaml-0.1.pc 14 15maintainer-clean-local: 16 rm -f aclocal.m4 config.h.in configure config/* 17 -find ${builddir} -name Makefile.in -exec rm -f '{}' ';' 18 19distclean-local: 20 rm -fr tests/run-test-suite packaging 21 -git worktree prune 22 23.PHONY: bootstrap 24bootstrap: maintainer-clean 25 ./bootstrap 26 ./configure 27 make 28 29test: all 30 make -C tests check-TESTS 31 32test-suite: tests/run-test-suite all 33 make -C $< test 34 35test-all: test test-suite 36 37tests/run-test-suite: 38ifeq ($(LIBYAML_TEST_SUITE_RUN_REPO),$(LIBYAML_TEST_SUITE_RUN_REPO_DEFAULT)) 39 -git branch --track $(LIBYAML_TEST_SUITE_RUN_BRANCH) origin/$(LIBYAML_TEST_SUITE_RUN_BRANCH) 40 -git worktree prune 41 git worktree add $@ $(LIBYAML_TEST_SUITE_RUN_BRANCH) 42 else 43 git clone --branch $(LIBYAML_TEST_SUITE_RUN_BRANCH) $(LIBYAML_TEST_SUITE_RUN_REPO) $@ 44 endif 45 46packaging: 47 -git branch --track $@ origin/$@ 48 git worktree add --force $@ $@ 49 50docker-dist: packaging 51 make -C $</docker libyaml-dist 52 53docker-test-pyyaml: packaging 54 make -C $</docker test-pyyaml 55