summaryrefslogtreecommitdiffstats
path: root/temper/Makefile
diff options
context:
space:
mode:
authormakefu <makefu@syntax-fehler.de>2011-07-11 14:46:45 +0200
committermakefu <makefu@syntax-fehler.de>2011-07-11 14:46:45 +0200
commite90a65963e4a3feb9531fdbce2dc464556fd339d (patch)
treed9b858ad752ad7d110b7d47519cb5400fdb4afe2 /temper/Makefile
parentd65a67a8541d9b1c4e829cf1f0c66f76891f47d9 (diff)
updated temper Makefile
Diffstat (limited to 'temper/Makefile')
-rw-r--r--temper/Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/temper/Makefile b/temper/Makefile
index 18165772..79dc3216 100644
--- a/temper/Makefile
+++ b/temper/Makefile
@@ -3,15 +3,16 @@ all: infest
infest: temper
CFLAGS = -O2 -Wall
-temper: temper.c
+temper: temper.c rules-install
${CC} -DUNIT_TEST -o $@ $^ -lusb
chmod +s temper
- install temper /usr/bin
-
+ cp -a temper /usr/bin
clean:
rm -f temper *.o
-
rules-install: # must be superuser to do this
cp 99-tempsensor.rules /etc/udev/rules.d
debian-prereq:
apt-get install libusb-dev
+uninstall:
+ rm -f /etc/udev/rules.d/99-tempsensor.rules /usr/bin/temper
+