aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 7 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 3ab7005..b7bff75 100644
--- a/Makefile
+++ b/Makefile
@@ -2,6 +2,8 @@ CC=cc
CFLAGS+=-std=c99 -pedantic -Wall -Wextra -O2 -I/usr/include/freetype2
LDFLAGS+=-lX11 -lXft
+INSTALL=/usr/local/bin
+
TSAR_OUT=tsarbar
HEADERS=src/pipe.h src/bardata.h
@@ -24,11 +26,10 @@ run: $(TSAR_OUT)
clean:
rm $(TSAR_OUT)
-install: $(SRC)
- $(CC) $(SRC) -o $(TSAR_OUT) $(CFLAGS) $(LDFLAGS)
- cp tsarbar /usr/bin/tsarbar
- cp tsarc /usr/bin/tsarc
+install: $(TSAR_OUT)
+ cp tsarbar $(INSTALL)/tsarbar
+ cp tsarc $(INSTALL)/tsarc
uninstall:
- rm /usr/bin/tsarbar
- rm /usr/bin/tsarc
+ rm $(INSTALL)/tsarbar
+ rm $(INSTALL)/tsarc