Build: python agent: use setup.py over autoconf
[deliverable/lttng-ust.git] / liblttng-ust-python-agent / Makefile.am
CommitLineData
de4dee04
PP
1# tracepoint provider
2AM_CPPFLAGS = $(PYTHON_INCLUDE) -I$(top_srcdir)/include/ \
3 -I$(top_builddir)/include/
4AM_CFLAGS = -fno-strict-aliasing
5lib_LTLIBRARIES = liblttng-ust-python-agent.la
c3e14096
DG
6liblttng_ust_python_agent_la_SOURCES = lttng_ust_python.c lttng_ust_python.h
7liblttng_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.
13agent_path=lttngust
14all-local:
15 $(PYTHON) setup.py build --verbose
16
17install-exec-local:
18 if [ "$(DESTDIR)" = "" ]; then \
19 $(PYTHON) setup.py install --prefix=$(prefix) --record install_files.txt --verbose --no-compile $(DISTSETUPOPTS); \
20 else \
21 $(PYTHON) setup.py install --root=$(DESTDIR) --verbose install_files.txt --prefix=$(prefix) --no-compile $(DISTSETUPOPTS); \
22 fi
23clean-local:
24 rm -rf build
25
26uninstall-local:
27 cat install_files.txt | xargs rm -rf
28 rm -rf $(DESTDIR)$(pkgpythondir)
29
30EXTRA_DIST=$(agent_path)
31
32# Remove automake generated file before dist
33dist-hook:
34 rm -rf $(distdir)/$(agent_path)/__init__.py
This page took 0.025087 seconds and 5 git commands to generate.