From 8b3a89c486e6b707c93b3a28d8500889a8a6581b Mon Sep 17 00:00:00 2001 From: Philipp Hahn Date: Thu, 15 Apr 2010 11:21:18 +0200 Subject: [PATCH] Install nwfilter xml files from source directory. During an out-of-tree build, the current working directory is the build directory. Since the FILTERS are static and not modified or auto-generated during the build process, they need to be explicitly fetched from the source directory during install. Prefix the files with $(srcdir), which gets expanded to the absolute or relative path to the source directory, even when duing out-of-tree builds. Signed-off-by: Philipp Hahn --- examples/xml/nwfilter/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/xml/nwfilter/Makefile.am b/examples/xml/nwfilter/Makefile.am index dcc5be061a..54a7aae651 100644 --- a/examples/xml/nwfilter/Makefile.am +++ b/examples/xml/nwfilter/Makefile.am @@ -22,7 +22,7 @@ NWFILTER_DIR = "$(DESTDIR)$(sysconfdir)/libvirt/nwfilter" install-data-local: $(MKDIR_P) "$(NWFILTER_DIR)" for f in $(FILTERS); do \ - $(INSTALL_DATA) $$f "$(NWFILTER_DIR)"; \ + $(INSTALL_DATA) $(srcdir)/$$f "$(NWFILTER_DIR)"; \ done uninstall-local::