Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trurl: Split install to install-bin and install-man #346

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ CFLAGS += -Wconversion -Wmissing-prototypes -Wwrite-strings -Wsign-compare -Wno-
ifndef NDEBUG
CFLAGS += -Werror -g
endif
MANUAL = trurl.1
MANUAL = trurl.md
bagder marked this conversation as resolved.
Show resolved Hide resolved

PREFIX ?= /usr/local
BINDIR ?= $(PREFIX)/bin
Expand All @@ -48,9 +48,15 @@ $(TARGET): $(OBJS)
trurl.o: trurl.c version.h

.PHONY: install
install:
install: install-bin install-man

.PHONY: install-bin
install-bin:
$(INSTALL) -d $(DESTDIR)$(BINDIR)
$(INSTALL) -m 0755 $(TARGET) $(DESTDIR)$(BINDIR)

.PHONY: install-man
install-man:
$(INSTALL) -d $(DESTDIR)$(MANDIR)
$(INSTALL) -m 0644 $(MANUAL) $(DESTDIR)$(MANDIR)

Expand Down