From ee18fc8e303c4de1fa68e8cfc007cb31578d0c3a Mon Sep 17 00:00:00 2001 From: Julian T Date: Sat, 21 Mar 2020 19:05:43 +0100 Subject: Added render makefile target --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 6065994..aec3efe 100644 --- a/Makefile +++ b/Makefile @@ -24,12 +24,15 @@ $(BUILD_DIR)/%.o: %.c $(BINARY): $(OBJ) $(CC) -o $@ $^ $(LDFLAGS) -.PHONY: run show clean +.PHONY: render run show clean # This will also generate the image -run: $(BINARY) +render: $(BINARY) ./$(BINARY) | convert - test.png +run: $(BINARY) + ./$(BINARY) + show: run xdg-open test.png -- cgit v1.2.3