summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2007-09-17 21:52:09 +0200
committerTobias Klauser <tklauser@xenon.tklauser.home>2007-09-17 21:52:09 +0200
commit545c8310cb216c39d9bb9262167387d448863132 (patch)
tree765dcfd9cdbd488eb81ab7a1198ebc819eb5f0d2 /Makefile
parent44a84f6d0984fe5fca1fb7d52bff68763fda86c5 (diff)
Print uptime in statusbar
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 13 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 3234256..c622673 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,19 @@
CFLAGS=-Wall
LDFLAGS=-lacpi -lcpufreq
+BINDIR=$(HOME)/bin
+
all: statusbar
statusbar: statusbar.c
- $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $<
+ @echo "CC $@"
+ @$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $<
+ @echo "strip $@"
+
+install: statusbar
+ @echo "installing $< to $(BINDIR)"
+ @install -m 700 -D $< $(BINDIR)/$<
+
+clean:
+ @echo "cleaning"
+ @rm -f statusbar