Makefile (356B) - raw


      1 PREFIX ?= /usr/local
      2 CC ?= cc
      3 LDFLAGS = -lX11
      4 
      5 dwmblocks: dwmblocks.c config.h
      6 	${CC} dwmblocks.c $(LDFLAGS) -o dwmblocks
      7 
      8 config.h:
      9 	cp config.def.h $@
     10 
     11 install: dwmblocks
     12 	mkdir -p $(DESTDIR)$(PREFIX)/bin
     13 	install -m 0755 dwmblocks $(DESTDIR)$(PREFIX)/bin/dwmblocks
     14 
     15 uninstall:
     16 	rm -f $(DESTDIR)$(PREFIX)/bin/dwmblocks
     17 
     18 clean:
     19 	rm -f *.o *.gch dwmblocks