Xinqi Bao's Git

Convert slstatus.1 to mandoc, simplify it and remove -h
[slstatus.git] / Makefile
1 # See LICENSE file for copyright and license details.
2 # slstatus - suckless status monitor
3 .POSIX:
4
5 include config.mk
6
7 all: slstatus
8
9 slstatus: slstatus.c config.h config.mk
10 $(CC) -o $@ $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) slstatus.c $(LDLIBS)
11
12 config.h:
13 cp config.def.h $@
14
15 clean:
16 rm -f slstatus
17
18 install: all
19 mkdir -p "$(DESTDIR)$(PREFIX)/bin"
20 cp -f slstatus "$(DESTDIR)$(PREFIX)/bin"
21 chmod 755 "$(DESTDIR)$(PREFIX)/bin/slstatus"
22 mkdir -p "$(DESTDIR)$(MANPREFIX)/man1"
23 cp -f slstatus.1 "$(DESTDIR)$(MANPREFIX)/man1"
24 chmod 644 "$(DESTDIR)$(MANPREFIX)/man1/slstatus.1"
25
26 uninstall:
27 rm -f "$(DESTDIR)$(PREFIX)/bin/slstatus"
28 rm -f "$(DESTDIR)$(MANPREFIX)/man1/slstatus.1"