1 CFLAGS+=-Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare
5 ifeq ($(shell uname),Linux)
9 wmiistatus: wmiistatus.o wmiistatus.h config.h config.o
18 install -m 755 -d $(DESTDIR)/usr/bin
19 install -m 755 -d $(DESTDIR)/etc/init.d
20 install -m 755 -d $(DESTDIR)/usr/share/man/man1
21 install -m 755 wmiistatus $(DESTDIR)/usr/bin/wmiistatus
22 install -m 755 wmiistatus.init $(DESTDIR)/etc/init.d/wmiistatus
23 install -m 644 wmiistatus.conf $(DESTDIR)/etc/wmiistatus.conf
24 install -m 644 wmiistatus.1 $(DESTDIR)/usr/share/man/man1
27 tar cf wmiistatus.tar *.c *.h *.1 *.conf *.init Makefile
28 bzip2 -9 wmiistatus.tar