-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
44 lines (30 loc) · 853 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
.POSIX:
include config.mk
SRC = st.c x.c
OBJ = $(SRC:.c=.o)
all: st
config.h:
cp config.def.h config.h
st.o: config.h st.h win.h normalMode.h normalMode.c utils.h
x.o: arg.h config.h st.h win.h
${OBJ}: config.h config.mk
st: ${OBJ}
terminfo-entry:
tic -sx st.info
@echo See the README file regarding the terminfo entry of st.
install: all
mkdir -p ${DESTDIR}${PREFIX}/bin
mkdir -p ${DESTDIR}${MANPREFIX}/man1
cp -f st ${DESTDIR}${PREFIX}/bin/
cp -f st.1 ${DESTDIR}${MANPREFIX}/man1/st.1
chmod 0755 ${DESTDIR}${PREFIX}/bin/st
chmod 0644 ${DESTDIR}${MANPREFIX}/man1/st.1
uninstall:
rm -f ${DESTDIR}${PREFIX}/bin/st
rm -f ${DESTDIR}${MANPREFIX}/man1/st.1
clean:
rm -f st ${OBJ}
rm -f ${DIST}.tar.gz
dist: clean
git archive --format=tar.gz -o ${DIST}.tar.gz --prefix=${DIST}/ HEAD
.PHONY: all install uninstall clean dist