shithub: drawterm

Download patch

ref: e8c4489e0da9e057997be3da11cef72ec039c9f8
parent: 7c06cf764b2d7de70ea225ead0e913b5785ddf3b
author: Sigrid Solveig Haflínudóttir <[email protected]>
date: Tue Jan 18 13:37:34 EST 2022

gui-wl: remove empty generated files on wayland-scanner errors

--- a/gui-wl/Makefile
+++ b/gui-wl/Makefile
@@ -18,16 +18,16 @@
 	wl-util.$O\
 
 xdg-shell-protocol.c:
-	wayland-scanner private-code < $(XDG_SHELL) > xdg-shell-protocol.c
+	wayland-scanner private-code < $(XDG_SHELL) > $@ || { rm -f $@; exit 1; }
 
 xdg-shell-protocol.h:
-	wayland-scanner client-header < $(XDG_SHELL) > xdg-shell-protocol.h
+	wayland-scanner client-header < $(XDG_SHELL) > $@ || { rm -f $@; exit 1; }
 
 xdg-decoration-protocol.c:
-	wayland-scanner private-code < $(XDG_DECO) > xdg-decoration-protocol.c
+	wayland-scanner private-code < $(XDG_DECO) > $@ || { rm -f $@; exit 1; }
 
 xdg-decoration-protocol.h:
-	wayland-scanner client-header < $(XDG_DECO) > xdg-decoration-protocol.h
+	wayland-scanner client-header < $(XDG_DECO) > $@ || { rm -f $@; exit 1; }
 
 default: $(LIB)
 $(LIB): $(HFILES) $(OFILES)