aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2020-03-21 19:05:43 +0100
committerJulian T <julian@jtle.dk>2020-03-21 19:05:43 +0100
commitee18fc8e303c4de1fa68e8cfc007cb31578d0c3a (patch)
treea9eb6749b3175e5a49563004738f7fa645f9fd8b
parent0aa3ca114ca239e03f5db4348685d1ebf9a2977a (diff)
Added render makefile target
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
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