blob: ecba6d53897066623a2726645a0e61b101da05a4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
## Run `./bootstrap` to generate the "Makefile.in" files in this directory and
## the "$SUBDIRS" subdirectories.
SUBDIRS = include src . tests
EXTRA_DIST = Changes ReadMe.md License CMakeLists.txt doc/doxygen.cfg
export LIBYAML_ROOT := $(shell pwd)
LIBYAML_TEST := $(shell grep -E '^(http|git)' .libyaml-test | tail -n1)
LIBYAML_TEST_REPO ?= $(word 1, $(LIBYAML_TEST))
LIBYAML_TEST_COMMIT ?= $(word 2, $(LIBYAML_TEST))
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = yaml-0.1.pc
maintainer-clean-local:
rm -f aclocal.m4 config.h.in configure config/*
-find ${builddir} -name Makefile.in -exec rm -f '{}' ';'
distclean-local:
rm -fr libyaml-test
-git worktree prune
.PHONY: bootstrap libyaml-test
bootstrap: maintainer-clean
./bootstrap
./configure
make
test-all: test test-suite
test: all
make -C tests check-TESTS
test-suite: libyaml-test all
make -C $< $@
docker-build:
make -C pkg/docker build
docker-dist:
make -C pkg/docker libyaml-dist
libyaml-test:
-git clone $(LIBYAML_TEST_REPO) $@
( cd $@ && git reset --hard $(LIBYAML_TEST_COMMIT) )
|