]> git.armaanb.net Git - dwmblocks.git/blob - Makefile
Added variable in makefile to change c compiler
[dwmblocks.git] / Makefile
1 PREFIX ?= /usr/local
2 CC ?= cc
3 output: dwmblocks.c blocks.h
4         ${CC} `pkg-config --cflags x11` `pkg-config --libs x11` dwmblocks.c -o dwmblocks
5 clean:
6         rm -f *.o *.gch dwmblocks
7 install: output
8         mkdir -p $(DESTDIR)$(PREFIX)/bin
9         cp -f dwmblocks $(DESTDIR)$(PREFIX)/bin
10         chmod 755 $(DESTDIR)$(PREFIX)/bin/dwmblocks
11 uninstall:
12         rm -f $(DESTDIR)$(PREFIX)/bin/dwmblocks