1 # SPDX-License-Identifier: MIT
3 AM_CPPFLAGS += -DBABELTRACE_PLUGINS_DIR=\"$(BABELTRACE_PLUGINS_DIR)\"
5 noinst_LTLIBRARIES = libbabeltrace2-common.la
7 libbabeltrace2_common_la_SOURCES = \
22 ## This target generates an include file that contains the git version
23 ## string of the current branch, it must be continuously updated when
24 ## we build in the git repo and shipped in dist tarballs to reflect the
25 ## status of the tree when it was generated. If the tree is clean and
26 ## the current commit is tag a starting with "v", consider this a
27 ## release version and set an empty git version.
29 version_verbose = $(version_verbose_@AM_V@)
30 version_verbose_ = $(version_verbose_@AM_DEFAULT_V@)
31 version_verbose_0 = @echo " GEN " $@;
34 $(version_verbose)GREP=$(GREP) SED=$(SED) TOP_SRCDIR="$(top_srcdir)" $(SHELL) $(srcdir)/gen-version-i.sh
36 dist_noinst_SCRIPTS = gen-version-i.sh
39 ## version.i is defined as a .PHONY target even if it's a real file,
40 ## we want the target to be re-run on every make.
44 CLEANFILES = version.i.tmp
47 ## Only clean "version.i" on dist-clean, we need to keep it on regular
48 ## clean when it's part of a dist tarball.
50 DISTCLEANFILES = version.i
52 noinst_HEADERS += version.h version.i