]> git.sur5r.net Git - i3/i3status/blob - Makefile
Implement flags for batteries to use the last full capacity. This breaks configfiles.
[i3/i3status] / Makefile
1 CFLAGS+=-Wall -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare
2 CFLAGS+=-g
3 CFLAGS+=-std=gnu99
4 CFLAGS+=-pedantic
5 CFLAGS+=-DPREFIX=\"\"
6
7 ifeq ($(shell uname),Linux)
8 CFLAGS+=-DLINUX
9 CFLAGS+=-D_GNU_SOURCE
10 endif
11
12 # Define this if you want i3status to spit out dzen2-compatible output on stdout
13 CFLAGS+=-DDZEN
14
15 i3status: i3status.o i3status.h
16
17 clean:
18         rm -f *.o
19
20 distclean: clean
21         rm -f i3status
22
23 install:
24         install -m 755 -d $(DESTDIR)/usr/bin
25         install -m 755 -d $(DESTDIR)/etc
26         install -m 755 -d $(DESTDIR)/usr/share/man/man1
27         install -m 755 i3status $(DESTDIR)/usr/bin/i3status
28         install -m 644 i3status.conf $(DESTDIR)/etc/i3status.conf
29         install -m 644 i3status.1 $(DESTDIR)/usr/share/man/man1
30
31 release:
32         tar cjf i3status.tar.bz2 *.c *.h *.1 *.conf Makefile
33
34 all: i3status