Skip to content

Commit

Permalink
Add make install
Browse files Browse the repository at this point in the history
  • Loading branch information
alichtman committed Jun 23, 2024
1 parent dc28c4e commit 6a6f51d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 > $$@
Expand Down
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
```
Expand Down

0 comments on commit 6a6f51d

Please # to comment.