Skip to content
Snippets Groups Projects
Makefile.am 1.28 KiB
Newer Older
  • Learn to ignore specific revisions
  • ## Run `./bootstrap` to generate the "Makefile.in" files in this directory and
    
    ## the "$SUBDIRS" subdirectories.
    
    SUBDIRS = include src . tests
    
    Kirill Simonov's avatar
    Kirill Simonov committed
    
    
    EXTRA_DIST = Changes ReadMe.md License CMakeLists.txt doc/doxygen.cfg
    
    Kirill Simonov's avatar
    Kirill Simonov committed
    
    
    LIBYAML_TEST_SUITE_REPO ?= https://github.com/yaml/libyaml-test-suite
    
    Ingy döt Net's avatar
    wip
    Ingy döt Net committed
    # LIBYAML_TEST_SUITE_COMMIT ?= 1f1b00ab6763647d05e44200b63fa62f1d2269a3
    
    
    # NOTE: Uncomment to use a local copy of libyaml-test-suite
    #   LIBYAML_TEST_SUITE_REPO := ../libyaml-test-suite/.git
    
    Ingy döt Net's avatar
    wip
    Ingy döt Net committed
    LIBYAML_TEST_SUITE_COMMIT := devel
    
    pkgconfigdir = $(libdir)/pkgconfig
    pkgconfig_DATA = yaml-0.1.pc
    
    
    Kirill Simonov's avatar
    Kirill Simonov committed
    maintainer-clean-local:
    
    	rm -f aclocal.m4 config.h.in configure config/*
    
    Kirill Simonov's avatar
    Kirill Simonov committed
    	-find ${builddir} -name Makefile.in -exec rm -f '{}' ';'
    
    
    distclean-local:
    
    	rm -fr tests/run-test-suite packaging
    
    Kirill Simonov's avatar
    Kirill Simonov committed
    .PHONY: bootstrap
    bootstrap: maintainer-clean
    	./bootstrap
    
    test: all
    	make -C tests check-TESTS
    
    test-suite: tests/run-test-suite all
    
    
    test-all: test test-suite
    
    	  git clone $(LIBYAML_TEST_SUITE_REPO) $@
    	  ( cd $@ && git reset --hard $(LIBYAML_TEST_SUITE_COMMIT) )
    
    	-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