Skip to content
Open
Changes from 1 commit
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
Prev Previous commit
Merge remote-tracking branch 'upstream/master' into manpage
  • Loading branch information
mattmahn committed Jan 23, 2018
commit 18f0689e866c7c8d241610286c35d2ac560a6725
28 changes: 14 additions & 14 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
prefix=/usr/local
exec_prefix=$(prefix)
bindir=$(exec_prefix)/bin
datarootdir=$(prefix)/share
datadir=$(datarootdir)
mandir=$(datarootdir)/man
man1_dir=$(mandir)/man1
PREFIX ?= /usr/local
EXEC_PREFIX ?= $(PREFIX)
BINDIR ?= $(EXEC_PREFIX)/bin
DATAROOTDIR ?= $(PREFIX)/share
DATADIR ?= $(DATAROOTDIR)
MANDIR ?= $(DATAROOTDIR)/man
MAN1DIR ?= $(MANDIR)/man1

# files that need mode 755
EXEC_FILES = git-standup
Expand All @@ -20,15 +20,15 @@ git-standup.1.gz: git-standup.1
gzip -fk $<

install: git-standup.1.gz
mkdir -p $(bindir) $(man1_dir)
install -m 0755 $(EXEC_FILES) $(bindir)
install -m 0644 "git-standup.1.gz" $(man1_dir)
mkdir -p $(BINDIR)
install -m 0755 $(EXEC_FILES) $(BINDIR)
install -m 0644 "git-standup.1.gz" $(MAN1DIR)

man: git-standup.1.gz

uninstall:
test -d $(bindir) && \
cd $(bindir) && \
test -d $(BINDIR) && \
cd $(BINDIR) && \
rm -f $(EXEC_FILES)
test -f "$(man1_dir)/git-standup.1.gz" && \
rm -f "$(man1_dir)/git-standup.1.gz"
test -f "$(MAN1DIR)/git-standup.1.gz" && \
rm -f "$(MAN1DIR)/git-standup.1.gz"
You are viewing a condensed version of this merge commit. You can view the full changes here.