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