Blame python-lttngust/Makefile.am

Packit c04fcb
# Use setup.py for the installation instead of Autoconf.
Packit c04fcb
# This ease the installation process and assure a *pythonic*
Packit c04fcb
# installation.
Packit c04fcb
agent_path=lttngust
Packit c04fcb
all-local:
Packit c04fcb
	$(PYTHON) setup.py build --verbose
Packit c04fcb
Packit c04fcb
install-exec-local:
Packit c04fcb
	@opts="--prefix=$(prefix) --verbose --no-compile $(DISTSETUPOPTS)"; \
Packit c04fcb
	if [ "$(DESTDIR)" != "" ]; then \
Packit c04fcb
		opts="$$opts --root=$(DESTDIR)"; \
Packit c04fcb
	fi; \
Packit c04fcb
	$(PYTHON) setup.py install $$opts;
Packit c04fcb
Packit c04fcb
clean-local:
Packit c04fcb
	rm -rf build
Packit c04fcb
Packit c04fcb
uninstall-local:
Packit c04fcb
	rm -rf $(DESTDIR)$(pkgpythondir)
Packit c04fcb
Packit c04fcb
EXTRA_DIST=$(agent_path)
Packit c04fcb
Packit c04fcb
# Remove automake generated file before dist
Packit c04fcb
dist-hook:
Packit c04fcb
	rm -rf $(distdir)/$(agent_path)/__init__.py