Skip to content
This repository was archived by the owner on Jul 19, 2018. It is now read-only.
Open
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
13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@


CXXFLAGS ?= -g -O2 -Wall -Wold-style-cast
PREFIX ?= /usr/local
bindir = $(PREFIX)/bin
mandir = $(PREFIX)/man

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure about Debian but are these not usually in share/man? If not, could you make this MANDIR ?= so Homebrew could customise it? Thanks!


CPPFLAGS += -D_FILE_OFFSET_BITS=64
CXXFLAGS += -std=c++11
Expand All @@ -43,4 +46,14 @@ clean:
$(RM) *.1 ssh-agent-filter *.o
test ! -d .git || git checkout -f -- version.h

install: all
mkdir -p $(DESTDIR)$(bindir) $(DESTDIR)$(mandir)/man1
install -m 755 ssh-agent-filter $(DESTDIR)$(bindir)/ssh-agent-filter
install -m 755 afssh $(DESTDIR)$(bindir)/afssh
install -m 755 ssh-askpass-noinput $(DESTDIR)$(bindir)/ssh-askpass-noinput
install -m 644 ssh-agent-filter.1 $(DESTDIR)$(mandir)/man1/ssh-agent-filter.1
install -m 644 afssh.1 $(DESTDIR)$(mandir)/man1/afssh.1
install -m 644 ssh-askpass-noinput.1 $(DESTDIR)$(mandir)/man1/ssh-askpass-noinput.1


.PHONY: version.h