From 1267fc54bbb78aa557a4882b796773f0a1d11c13 Mon Sep 17 00:00:00 2001 From: Zvonimir Rudinski Date: Sun, 2 Jun 2024 06:02:57 +0200 Subject: [PATCH] add install makefile command --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index cbeb6db..1b7a5dd 100644 --- a/Makefile +++ b/Makefile @@ -11,6 +11,13 @@ main.o: clean: rm -f *.o + rm -f todd + rm /usr/local/bin/todd || true -all: todo.o main.o +todd: todo.o main.o $(CC) $(CFLAGS) todo.o main.o -lncurses -o todd + +all: todd + +install: todd + cp todd /usr/local/bin/todd