From 6a6f51d1a7b7b75e72b2c0147016f68d57887c78 Mon Sep 17 00:00:00 2001 From: Aaron Lichtman Date: Sun, 23 Jun 2024 00:11:22 -0700 Subject: [PATCH] Add make install --- Makefile | 7 +++++++ README.md | 7 +++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index cb95bb4..dc74a4c 100644 --- a/Makefile +++ b/Makefile @@ -121,6 +121,13 @@ clean: $(VERBOSE_PREFIX)$(RM) $(OBJS:.o=.d) $(VERBOSE_PREFIX)$(RM) $(OBJS:.o=.dwo) +.PHONY: install + +install: all + $(MKDIR) /usr/local/bin + cp $(PROJ) /usr/local/bin/$(NAME) + + define RELEASE_RULES inotify-info-$(TAG).tar.gz: git archive --prefix=inotify-info-$(TAG)/ v$(TAG) | gzip -n > $$@ diff --git a/README.md b/README.md index 3c64833..aec8a27 100644 --- a/README.md +++ b/README.md @@ -23,10 +23,9 @@ Linking _debug/inotify-info... ``` ## Install -You are free to copy the resulting executable to any suitable location in your `$PATH`. -``` -cp _release/inotify-info /usr/local/bin/ -``` +The resulting executable will be at `_release/inotify-info`. You are free to copy the resulting executable to any suitable location in your `$PATH`. + +Or run `$ make install` to install to `/usr/local/bin/`. ## Run (Prints Summary) ```