mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-26 15:45:28 +00:00
d5117af382
* Makefile.am: Expand some "*" wildcards, and (for now) disable the relatively unimportant, distuninstallcheck target. Fix a few redirect-directly-to-target bugs. Add a few $(srcdir)/ prefixes and add an uninstall-local rule. * docs/Makefile.am: More of the same. Split some long lines. * python/Makefile.am: Likewise. * python/tests/Makefile.am: Likewise. * qemud/Makefile.am: Likewise. * tests/Makefile.am: Remove the directories already listed in SUBDIRS. * docs/examples/index.py: Adapt to produce the desired changes in docs/examples/Makefile.am. Also, sort *.c, so results are reproducible, and emit a comment telling emacs and vi that the file is read-only. * docs/examples/Makefile.am: Regenerate. Author: Jim Meyering <meyering@redhat.com>
37 lines
920 B
Makefile
37 lines
920 B
Makefile
EXAMPLE_DIR = $(datadir)/doc/libvirt-python-$(LIBVIRT_VERSION)/examples
|
|
|
|
PYTESTS= \
|
|
basic.py \
|
|
create.py \
|
|
uuid.py \
|
|
error.py \
|
|
node.py
|
|
|
|
EXTRA_DIST = $(PYTESTS)
|
|
|
|
if WITH_PYTHON
|
|
tests: $(PYTESTS)
|
|
@echo "## running Python regression tests"
|
|
-@(PYTHONPATH="..:../.libs:../src/.libs:$(srcdir)/../src:$$PYTHONPATH";\
|
|
export PYTHONPATH; \
|
|
LD_LIBRARY_PATH="$(top_builddir)/src/.libs:$$LD_LIBRARY_PATH" ; \
|
|
export LD_LIBRARY_PATH; \
|
|
for test in $(PYTESTS) ; \
|
|
do log=`$(PYTHON) $(srcdir)/$$test` ; \
|
|
if [ "`echo $$log | grep OK`" = "" ] ; then \
|
|
echo "-- $$test" ; echo "$$log" ; fi ; done)
|
|
else
|
|
tests:
|
|
endif
|
|
|
|
clean:
|
|
rm -f *.pyc core
|
|
|
|
install-data-local:
|
|
$(mkinstalldirs) $(DESTDIR)$(EXAMPLE_DIR)
|
|
-(for test in $(PYTESTS); \
|
|
do @INSTALL@ -m 0644 $(srcdir)/$$test $(DESTDIR)$(EXAMPLE_DIR) ; done)
|
|
|
|
uninstall-local:
|
|
for test in $(PYTESTS); do rm -f $(DESTDIR)$(EXAMPLE_DIR)/$$test; done
|