mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-09 23:10:08 +00:00
35 lines
930 B
Makefile
35 lines
930 B
Makefile
|
# Beware this is autogenerated by index.py
|
||
|
INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I@srcdir@/include
|
||
|
DEPS = $(top_builddir)/src/libvir.la
|
||
|
LDADDS = @STATIC_BINARIES@ $(top_builddir)/src/libvir.la
|
||
|
|
||
|
rebuild: examples.xml index.html
|
||
|
|
||
|
examples.xml: index.py *.c
|
||
|
-@($(srcdir)/index.py)
|
||
|
|
||
|
index.html: examples.xml examples.xsl
|
||
|
-@(xsltproc examples.xsl examples.xml && echo "Rebuilt web page" && xmllint --valid --noout index.html)
|
||
|
|
||
|
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
|
||
|
|
||
|
noinst_PROGRAMS=info1
|
||
|
|
||
|
info1_SOURCES=info1.c
|
||
|
info1_LDFLAGS=
|
||
|
info1_DEPENDENCIES= $(DEPS)
|
||
|
info1_LDADD= $(LDADDS)
|
||
|
|
||
|
valgrind:
|
||
|
$(MAKE) CHECKER='valgrind' tests
|
||
|
|
||
|
tests: $(noinst_PROGRAMS)
|
||
|
@(echo '## examples regression tests')
|
||
|
@($(CHECKER) ./info1)
|
||
|
|
||
|
|