.POSIX: VM=fedora CPU=-smp 4 MEM=-m 4G DISP=-display none run: @qemu-system-x86_64 -enable-kvm $(CPU) $(MEM) -drive\ file=$(VM).img,format=raw $$([ -z $(CDR) ]|| echo -cdrom $(CDR)\ -boot d) $$(echo -n "-net user"; for port in $(PORTS); do echo -n\ ",hostfwd=tcp::$${port}-:$${port}"; done;) $(DISP) -net nic