2007-11-15 13:04:28 +00:00
|
|
|
# -*- buffer-read-only: t -*- vi: set ro:
|
2006-01-31 18:13:27 +00:00
|
|
|
# Beware this is autogenerated by index.py
|
2006-04-25 16:08:48 +00:00
|
|
|
SUBDIRS=python
|
2006-01-31 18:13:27 +00:00
|
|
|
INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I@srcdir@/include
|
2006-02-09 17:45:11 +00:00
|
|
|
DEPS = $(top_builddir)/src/libvirt.la
|
2008-02-28 17:06:32 +00:00
|
|
|
LDADDS = @STATIC_BINARIES@ $(WARN_CFLAGS) $(top_builddir)/src/libvirt.la $(COVERAGE_LDFLAGS)
|
2006-01-31 18:13:27 +00:00
|
|
|
|
|
|
|
rebuild: examples.xml index.html
|
|
|
|
|
2007-11-15 13:04:28 +00:00
|
|
|
examples.xml: index.py info1.c suspend.c
|
2006-01-31 18:13:27 +00:00
|
|
|
-@($(srcdir)/index.py)
|
|
|
|
|
2006-02-20 23:08:47 +00:00
|
|
|
index.html: examples.xml examples.xsl $(top_srcdir)/docs/site.xsl
|
2007-11-15 13:04:28 +00:00
|
|
|
-@(if [ -x $(XSLTPROC) ] ; then \
|
|
|
|
$(XSLTPROC) examples.xsl examples.xml \
|
|
|
|
&& echo "Rebuilt web page" \
|
|
|
|
&& xmllint --valid --noout index.html; \
|
|
|
|
fi)
|
2006-01-31 18:13:27 +00:00
|
|
|
|
2007-11-15 13:04:28 +00:00
|
|
|
install-data-local:
|
2006-01-31 18:13:27 +00:00
|
|
|
$(mkinstalldirs) $(DESTDIR)$(HTML_DIR)
|
2007-11-15 13:04:28 +00:00
|
|
|
-@INSTALL@ -m 0644 $(srcdir)/*.html $(srcdir)/*.c $(srcdir)/*.xml \
|
|
|
|
$(srcdir)/*.xsl $(srcdir)/*.res $(DESTDIR)$(HTML_DIR)
|
2006-01-31 18:13:27 +00:00
|
|
|
|
2008-02-20 17:26:01 +00:00
|
|
|
EXTRA_DIST=examples.xsl index.py examples.xml
|
2006-01-31 18:13:27 +00:00
|
|
|
|
2008-02-20 17:26:01 +00:00
|
|
|
noinst_PROGRAMS=info1 suspend
|
2007-06-26 23:48:46 +00:00
|
|
|
|
2007-06-29 13:23:13 +00:00
|
|
|
info1_SOURCES=info1.c
|
|
|
|
info1_LDFLAGS=
|
|
|
|
info1_DEPENDENCIES= $(DEPS)
|
|
|
|
info1_LDADD= $(LDADDS)
|
|
|
|
|
2007-11-15 13:04:28 +00:00
|
|
|
suspend_SOURCES=suspend.c
|
|
|
|
suspend_LDFLAGS=
|
|
|
|
suspend_DEPENDENCIES= $(DEPS)
|
|
|
|
suspend_LDADD= $(LDADDS)
|
|
|
|
|
2008-02-20 17:26:01 +00:00
|
|
|
valgrind:
|
2006-01-31 18:13:27 +00:00
|
|
|
$(MAKE) CHECKER='valgrind' tests
|
|
|
|
|
|
|
|
tests: $(noinst_PROGRAMS)
|
|
|
|
@(echo '## examples regression tests')
|
2007-06-29 13:23:13 +00:00
|
|
|
@($(CHECKER) ./info1)
|
2007-11-15 13:04:28 +00:00
|
|
|
@($(CHECKER) ./suspend)
|