summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMichael Stapelberg <michael+x200@stapelberg.de>2008-10-04 19:32:35 +0200
committerMichael Stapelberg <michael+x200@stapelberg.de>2008-10-04 19:32:35 +0200
commite31a85eb3b9d331d73254ceb2d6156cc8e66c40a (patch)
tree436738c1d8a3e50551d45182523599430a337ebc /Makefile
parente68449ee1db529d0ef7b88fb0fba15263445b574 (diff)
Make some formats/paths configurable, add initscript
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 2af2010..09f537f 100644
--- a/Makefile
+++ b/Makefile
@@ -1,2 +1,10 @@
-all:
+wmiistatus: wmiistatus.c wmiistatus.h config.h Makefile
gcc -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -g -O2 -o wmiistatus wmiistatus.c
+
+install:
+ install -m 755 -d $(DESTDIR)/usr/bin
+ install -m 755 -d $(DESTDIR)/etc/init.d
+ install -m 755 wmiistatus $(DESTDIR)/usr/bin/wmiistatus
+ install -m 755 wmiistatus.init $(DESTDIR)/etc/init.d/wmiistatus
+
+all: wmiistatus