Skip to content

Commit

Permalink
Merge pull request #78 from mhlavink/master
Browse files Browse the repository at this point in the history
add option to specify bin directory
  • Loading branch information
bbonev authored Jan 22, 2025
2 parents 4e32789 + b105435 commit c6a66b8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ CFLAGS+=-fanalyzer
endif

PREFIX?=$(DESTDIR)/usr
BINDIR?=$(PREFIX)/sbin
INSTALL?=install
STRIP?=strip

Expand Down Expand Up @@ -145,12 +146,12 @@ install: $(TARGET)
$(E) STRIP $(TARGET)
$(Q)$(STRIP) $(TARGET)
$(E) INSTALL $(TARGET)
$(Q)$(INSTALL) -D -m 0755 $(TARGET) $(PREFIX)/sbin/$(TARGET)
$(Q)$(INSTALL) -D -m 0755 $(TARGET) $(BINDIR)/$(TARGET)
$(Q)$(INSTALL) -D -m 0644 iotop.8 $(PREFIX)/share/man/man8/iotop.8

uninstall:
$(E) UNINSTALL $(TARGET)
$(Q)rm -f $(PREFIX)/sbin/$(TARGET)
$(Q)rm -f $(BINDIR)/$(TARGET)
$(Q)rm -f $(PREFIX)/share/man/man8/iotop.8

bld/.mkdir:
Expand Down

0 comments on commit c6a66b8

Please sign in to comment.