diff --git a/Makefile b/Makefile index c2c3c6b..efd2104 100644 --- a/Makefile +++ b/Makefile @@ -2,13 +2,13 @@ PREFIX = /usr/local -output: dwmblocks.o +dwmblocks: dwmblocks.o gcc dwmblocks.o -lX11 -o dwmblocks dwmblocks.o: dwmblocks.c config.h gcc -c -lX11 dwmblocks.c clean: rm -f *.o *.gch dwmblocks -install: output +install: dwmblocks mkdir -p $(DESTDIR)$(PREFIX)/bin cp -f dwmblocks $(DESTDIR)$(PREFIX)/bin chmod 755 $(DESTDIR)$(PREFIX)/bin/dwmblocks