-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
26 lines (22 loc) · 544 Bytes
/
Makefile
File metadata and controls
26 lines (22 loc) · 544 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
prefix ?= $(HOME)
bindir ?= $(prefix)/bin
docdir ?= $(prefix)/share/doc/vx
INSTALL ?= install
# make test V=1 enables verbose output.
# make test V=2 enables trace mode.
ifdef V
VERBOSE=$(V)
endif
ifdef VERBOSE
TEST_OPTS += --verbose
ifeq ($(VERBOSE),2)
TEST_OPTS += -x
endif
endif
install::
$(INSTALL) -d -m 755 '$(DESTDIR)$(bindir)'
$(INSTALL) -d -m 755 '$(DESTDIR)$(docdir)'
$(INSTALL) vx '$(DESTDIR)$(bindir)'
$(INSTALL) -m 644 README.md LICENSE '$(DESTDIR)$(docdir)'
test::
./test.sh $(TEST_OPTS) $(flags)