summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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