-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
66 lines (38 loc) · 1.05 KB
/
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# slterm - simple terminal
# See LICENSE file for copyright and license details.
.POSIX:
define HELP
Makefile help
for the build configuration, edit config.make
further configuration and preferences can be set in src/config.h
make targets
------------
slterm: (default) build slterm
static: build slterm as static binary
static_embedfont: static build, embed fonts into the binary
install: install slterm
endef
all: man tools
cd src && $(MAKE)
help:
$(info $(HELP))
slterm: man tools
cd src && $(MAKE)
static: man tools
cd src && $(MAKE) static
static_embedfont: man tools
cd src && $(MAKE) static EMBEDFONT=1
tools:
cd tools && $(MAKE)
check:
cd src && $(MAKE) check
#local (use config.in.loc)
l: cd src && $(MAKE)
man: slterm.1
slterm.1: slterm.1.rst
rst2man slterm.1.rst > slterm.1 || rst2man.py slterm.1.rst > slterm.1
install:
cd src && make install
loc-install: src/slterm slterm.1
su -c 'sh -c "mv /usr/local/bin/st /usr/local/bin/st.bak; cp src/slterm /usr/local/bin/st; chmod a+rx /usr/local/bin/st" '
.PHONY: all install