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