Skip to content

Commit

Permalink
make install tuning
Browse files Browse the repository at this point in the history
- use `install(1)` instead of `mkdir+cp`.
- remove `install-for-distro`, as it's nonstandard.
  • Loading branch information
motiejus committed Jun 26, 2024
1 parent 6dfe5b0 commit 23fccbf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
11 changes: 1 addition & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -127,22 +127,13 @@ clean:
.PHONY: install

install: all
$(MKDIR) $(BINDIR)
cp $(PROJ) $(BINDIR)/$(NAME)

install -D $(PROJ) $(BINDIR)/$(NAME)

.PHONY: uninstall

uninstall:
$(RM) $(BINDIR)/$(NAME)

.PHONY: install-for-distro

install-for-distro: all
$(MKDIR) /usr/bin
cp $(PROJ) /usr/bin/$(NAME)


define RELEASE_RULES
inotify-info-$(TAG).tar.gz:
git archive --prefix=inotify-info-$(TAG)/ v$(TAG) | gzip -n > $$@
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@ Linking _debug/inotify-info...
```

## Install
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/`.
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 23fccbf

Please sign in to comment.