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) ```