saschpe / libvirt-hook-qemu

Libvirt hook for setting up iptables port-forwarding rules when using NAT-ed networking.
236 stars 69 forks source link

make clean fails on Ubuntu 16.04 #17

Open nembery opened 7 years ago

nembery commented 7 years ago

Hi great tool!

make clean fails on Ubuntu 16.04. Appears to be variable expansion with the {,.json,.schema.json} line.

root@ubuntu-io6-28:~/libvirt-hook-qemu# make clean rm /etc/libvirt/hooks/hooks{.json,.schema.json} rm: cannot remove '/etc/libvirt/hooks/hooks{.json,.schema.json}': No such file or directory Makefile:12: recipe for target 'clean' failed make: *** [clean] Error 1

Manually expanding those results in: rm ${LIBVIRT_HOOKS_DIR}/hooks rm ${LIBVIRT_HOOKS_DIR}/hooks.json rm ${LIBVIRT_HOOKS_DIR}/hooks.schema.json and this works as expected.