From: Jim Fehlig Date: Thu, 8 Nov 2018 00:38:27 +0000 (-0700) Subject: build: Fix uninstall when WITH_APPARMOR_PROFILES is defined X-Git-Tag: v4.10.0-rc1~115 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b0d4365a7f2cd0afb4ccd99880a9076f596b652d;p=thirdparty%2Flibvirt.git build: Fix uninstall when WITH_APPARMOR_PROFILES is defined When libvirt configuration includes '--with-apparmor-profiles', the make uninstall target fails make[1]: Entering directory '/home/jim/upstream/libvirt/examples' ( cd '/etc/apparmor.d//abstractions' && rm -f libvirt-qemu libvirt-lxc ) ( cd '/etc/apparmor.d/' && rm -f usr.lib.libvirt.virt-aa-helper usr.sbin.libvirtd ) make[1]: *** No rule to make target 'uninstall-apparmor-local', needed by 'uninstall-local'. Stop. Add missing 'uninstall-apparmor-local' target to the examples Makefile.am. Signed-off-by: Jim Fehlig Reviewed-by: Andrea Bolognani --- diff --git a/examples/Makefile.am b/examples/Makefile.am index 8a9c118858..5b1f6a0523 100644 --- a/examples/Makefile.am +++ b/examples/Makefile.am @@ -96,6 +96,10 @@ install-apparmor-local: 'usr.lib.libvirt.virt-aa-helper'" \ >"$(APPARMOR_LOCAL_DIR)/usr.lib.libvirt.virt-aa-helper" +uninstall-apparmor-local: + rm -f "$(APPARMOR_LOCAL_DIR)/usr.lib.libvirt.virt-aa-helper" + rmdir "$(APPARMOR_LOCAL_DIR)" || : + INSTALL_DATA_LOCAL += install-apparmor-local UNINSTALL_LOCAL += uninstall-apparmor-local endif WITH_APPARMOR_PROFILES