Xinqi Bao's Git

Fixed out of boundary write on long lines.
[slstatus.git] / Makefile
1 # See LICENSE file for copyright and license details.
2
3 include config.mk
4
5 all: slstatus
6
7 slstatus: slstatus.c config.h config.mk
8 ${CC} ${CFLAGS} -o $@ slstatus.c ${LDFLAGS}
9
10 config.h:
11 cp config.def.h $@
12
13 clean:
14 rm -f slstatus
15
16 install: all
17 mkdir -p ${DESTDIR}${PREFIX}/bin
18 cp -f slstatus ${DESTDIR}${PREFIX}/bin
19 chmod 755 ${DESTDIR}${PREFIX}/bin/slstatus
20 mkdir -p ${DESTDIR}${MANPREFIX}/man1
21 cp -f slstatus.1 ${DESTDIR}${MANPREFIX}/man1
22 chmod 644 ${DESTDIR}${MANPREFIX}/man1/slstatus.1
23
24 uninstall:
25 rm -f ${DESTDIR}${PREFIX}/bin/slstatus
26 rm -f ${DESTDIR}${MANPREFIX}/man1/slstatus.1
27
28 .PHONY: all clean install uninstall