From 6cd264d4677511effbaa595eef088f293599a001 Mon Sep 17 00:00:00 2001 From: bjoernf Date: Tue, 15 Aug 2023 20:20:39 +0200 Subject: [PATCH] improved makefile with make install --- README.md | 8 ++++++++ makefile | 7 +++++++ 2 files changed, 15 insertions(+) diff --git a/README.md b/README.md index 044cd48..4ff54d4 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,14 @@ const char ICS_PATH[] = "tests/calendar.ics"; make run ``` +#### installation +``` +make +``` + +``` +sudo make install +``` #### TODO: improve Makefile diff --git a/makefile b/makefile index b1df881..69cc659 100644 --- a/makefile +++ b/makefile @@ -1,3 +1,6 @@ +a.out: + gcc -Wall ./src/*.c + .PHONY: debug debug: gcc -Wall -g ./src/*.c @@ -7,3 +10,7 @@ debug: run: gcc -Wall ./src/*.c ./a.out + +.PHONY: install +install: a.out + cp a.out /usr/local/bin/ics_analyzer