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
|
2007-05-29 14:44:15 +00:00
|
|
|
LDADDS = @STATIC_BINARIES@ $(WARN_CFLAGS) $(top_builddir)/src/libvirt.la
|
2006-01-31 18:13:27 +00:00
|
|
|
|
|
|
|
rebuild: examples.xml index.html
|
|
|
|
|
|
|
|
examples.xml: index.py *.c
|
|
|
|
-@($(srcdir)/index.py)
|
|
|
|
|
2006-02-20 23:08:47 +00:00
|
|
|
index.html: examples.xml examples.xsl $(top_srcdir)/docs/site.xsl
|
|
|
|
-@(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
|
|
|
|
|
|
|
install-data-local:
|
|
|
|
$(mkinstalldirs) $(DESTDIR)$(HTML_DIR)
|
|
|
|
-@INSTALL@ -m 0644 $(srcdir)/*.html $(srcdir)/*.c $(srcdir)/*.xml $(srcdir)/*.xsl $(srcdir)/*.res $(DESTDIR)$(HTML_DIR)
|
|
|
|
|
|
|
|
EXTRA_DIST=examples.xsl index.py examples.xml
|
|
|
|
|
2007-06-29 13:23:13 +00:00
|
|
|
noinst_PROGRAMS=suspend info1
|
2007-06-11 13:55:03 +00:00
|
|
|
|
2007-06-26 23:48:46 +00:00
|
|
|
suspend_SOURCES=suspend.c
|
|
|
|
suspend_LDFLAGS=
|
|
|
|
suspend_DEPENDENCIES= $(DEPS)
|
|
|
|
suspend_LDADD= $(LDADDS)
|
|
|
|
|
2007-06-29 13:23:13 +00:00
|
|
|
info1_SOURCES=info1.c
|
|
|
|
info1_LDFLAGS=
|
|
|
|
info1_DEPENDENCIES= $(DEPS)
|
|
|
|
info1_LDADD= $(LDADDS)
|
|
|
|
|
2006-01-31 18:13:27 +00:00
|
|
|
valgrind:
|
|
|
|
$(MAKE) CHECKER='valgrind' tests
|
|
|
|
|
|
|
|
tests: $(noinst_PROGRAMS)
|
|
|
|
@(echo '## examples regression tests')
|
2007-06-26 23:48:46 +00:00
|
|
|
@($(CHECKER) ./suspend)
|
2007-06-29 13:23:13 +00:00
|
|
|
@($(CHECKER) ./info1)
|
2006-01-31 18:13:27 +00:00
|
|
|
|
|
|
|
|