Commit | Line | Data |
---|---|---|
de4dee04 PP |
1 | # tracepoint provider |
2 | AM_CPPFLAGS = $(PYTHON_INCLUDE) -I$(top_srcdir)/include/ \ | |
3 | -I$(top_builddir)/include/ | |
4 | AM_CFLAGS = -fno-strict-aliasing | |
5 | lib_LTLIBRARIES = liblttng-ust-python-agent.la | |
c3e14096 DG |
6 | liblttng_ust_python_agent_la_SOURCES = lttng_ust_python.c lttng_ust_python.h |
7 | liblttng_ust_python_agent_la_LIBADD = -lc -llttng-ust \ | |
de4dee04 | 8 | -L$(top_builddir)/liblttng-ust/.libs |
c3e14096 | 9 | |
bf261856 JR |
10 | # Use setup.py for the installation instead of Autoconf. |
11 | # This ease the installation process and assure a *pythonic* | |
12 | # installation. | |
13 | agent_path=lttngust | |
14 | all-local: | |
15 | $(PYTHON) setup.py build --verbose | |
16 | ||
17 | install-exec-local: | |
dce1cbec JR |
18 | @opts="--prefix=$(prefix) --verbose --no-compile $(DISTSETUPOPTS)"; \ |
19 | if [ "$(DESTDIR)" != "" ]; then \ | |
20 | opts="$$opts --root=$(DESTDIR)"; \ | |
21 | fi; \ | |
22 | $(PYTHON) setup.py install $$opts; | |
23 | ||
bf261856 JR |
24 | clean-local: |
25 | rm -rf build | |
26 | ||
27 | uninstall-local: | |
bf261856 JR |
28 | rm -rf $(DESTDIR)$(pkgpythondir) |
29 | ||
30 | EXTRA_DIST=$(agent_path) | |
31 | ||
32 | # Remove automake generated file before dist | |
33 | dist-hook: | |
34 | rm -rf $(distdir)/$(agent_path)/__init__.py |