Makefile (395B)
1 .POSIX: 2 3 PREFIX = /usr/local 4 CC = gcc 5 6 dwmblocks: dwmblocks.o 7 $(CC) dwmblocks.o -lX11 -o dwmblocks 8 dwmblocks.o: dwmblocks.c config.h 9 $(CC) -c dwmblocks.c 10 install: dwmblocks 11 mkdir -p $(DESTDIR)$(PREFIX)/bin 12 cp -f dwmblocks $(DESTDIR)$(PREFIX)/bin 13 chmod 755 $(DESTDIR)$(PREFIX)/bin/dwmblocks 14 rm -f dwmblocks *.o 15 uninstall: 16 rm -f $(DESTDIR)$(PREFIX)/bin/dwmblocks 17 18 .PHONY: install uninstall