1 CFLAGS+=-Wall -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare
5 ifeq ($(shell uname),Linux)
9 # Define this if you want wmiistatus to spit out dzen2-compatible output on stdout
12 wmiistatus: wmiistatus.o wmiistatus.h
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
30 tar cjf wmiistatus.tar.bz2 *.c *.h *.1 *.conf *.init Makefile