-
-
Notifications
You must be signed in to change notification settings - Fork 322
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (24 loc) · 565 Bytes
/
Makefile
File metadata and controls
32 lines (24 loc) · 565 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
PREFIX ?= /usr/local
EXEC_PREFIX ?= $(PREFIX)
BINDIR ?= $(EXEC_PREFIX)/bin
DATAROOTDIR ?= $(PREFIX)/share
DATADIR ?= $(DATAROOTDIR)
MANDIR ?= $(DATAROOTDIR)/man
# files that need mode 755
EXEC_FILES = git-standup
.PHONY: check all install uninstall shellcheck shfmt
all:
@echo "usage: make install"
@echo " make uninstall"
install:
mkdir -p $(BINDIR)
install -m 0755 $(EXEC_FILES) $(BINDIR)
uninstall:
test -d $(BINDIR) && \
cd $(BINDIR) && \
rm -f $(EXEC_FILES)
check: shellcheck shfmt
shellcheck:
./actions/shellcheck
shfmt:
./actions/shfmt