]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Install nwfilter xml files from source directory.
authorPhilipp Hahn <hahn@univention.de>
Thu, 15 Apr 2010 09:21:18 +0000 (11:21 +0200)
committerEric Blake <eblake@redhat.com>
Tue, 20 Apr 2010 14:14:23 +0000 (08:14 -0600)
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 <hahn@univention.de>
examples/xml/nwfilter/Makefile.am

index dcc5be061aef3c149a0d6ec23bd016fb33ef6dff..54a7aae651409c84f909214ae8ca9364835b53ae 100644 (file)
@@ -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::