X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=Makefile;h=3cfa764b2026d47fcee7b27cbb05af2f26025a13;hb=9c5aec5cd5a4a1128cbe1031ccec8c403e4bfecd;hp=4af193c9c370bd406a472c0c972af10c8e14836e;hpb=9c9e08d2bc44f2c800c20ea9ac432133ff86d62e;p=dwmblocks.git diff --git a/Makefile b/Makefile index 4af193c..3cfa764 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,15 @@ PREFIX ?= /usr/local -output: dwmblocks.c blocks.h +output: dwmblocks.c blocks.def.h blocks.h cc `pkg-config --cflags x11` `pkg-config --libs x11` dwmblocks.c -o dwmblocks +blocks.h: + cp blocks.def.h $@ + + clean: rm -f *.o *.gch dwmblocks install: output mkdir -p $(DESTDIR)$(PREFIX)/bin - cp -f dwmblocks $(DESTDIR)$(PREFIX)/bin + install -m 0755 dwmblocks $(DESTDIR)$(PREFIX)/bin/dwmblocks +uninstall: + rm -f $(DESTDIR)$(PREFIX)/bin/dwmblocks