X-Git-Url: https://git.armaanb.net/?a=blobdiff_plain;f=Makefile;h=20b88629312cf1ab4fede8b4574c2572ebce3a37;hb=68c61172798a7885e095b43c6cdaa2837eb4f6e7;hp=ad7e7012124a9d22173ff2c0487a50118f8466fa;hpb=8893f2d08aed826532fbb7a7b63e20c5bd938563;p=dwmblocks.git diff --git a/Makefile b/Makefile index ad7e701..20b8862 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,16 @@ PREFIX ?= /usr/local CC ?= cc -output: dwmblocks.c blocks.h - ${CC} dwmblocks.c `pkg-config --cflags x11` `pkg-config --libs x11` -o dwmblocks +LDFLAGS = -lX11 + +output: dwmblocks.c + ${CC} dwmblocks.c $(LDFLAGS) -o dwmblocks + clean: rm -f *.o *.gch dwmblocks + install: output mkdir -p $(DESTDIR)$(PREFIX)/bin - cp -f dwmblocks $(DESTDIR)$(PREFIX)/bin - chmod 755 $(DESTDIR)$(PREFIX)/bin/dwmblocks + install -m 0755 dwmblocks $(DESTDIR)$(PREFIX)/bin/dwmblocks + uninstall: rm -f $(DESTDIR)$(PREFIX)/bin/dwmblocks