forked from awslabs/git-secrets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
25 lines (20 loc) · 752 Bytes
/
Makefile
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
PREFIX ?= /usr/local
MANPREFIX ?= "${PREFIX}/share/man/man1"
help:
@echo "Please use \`make <target>' where <target> is one of"
@echo " test to perform unit tests."
@echo " man to build the man file from README.rst"
@echo " install to install. Use PREFIX and MANPREFIX to customize."
# We use bats for testing: https://github.com/sstephenson/bats
test:
LANG=C test/bats/bin/bats test/
# The man page is completely derived from README.rst. Edits to
# README.rst require a rebuild of the man page.
man:
rst2man.py README.rst > git-secrets.1
install:
@mkdir -p ${DESTDIR}${MANPREFIX}
@mkdir -p ${DESTDIR}${PREFIX}/bin
@cp -f git-secrets ${DESTDIR}${PREFIX}/bin
@cp -f git-secrets.1 ${DESTDIR}${MANPREFIX}
.PHONY: help test man