This commit is contained in:
Till Dieminger
2025-08-30 21:31:46 +02:00
commit a242c7661a
7 changed files with 810 additions and 0 deletions

14
Makefile Executable file
View File

@@ -0,0 +1,14 @@
PREFIX ?= /usr/local
output: dwmblocks.o
gcc dwmblocks.o -lX11 -o dwmblocks
dwmblocks.o: dwmblocks.c config.h
gcc -c -lX11 dwmblocks.c
clean:
rm -f *.o *.gch dwmblocks
install: output
mkdir -p $(DESTDIR)$(PREFIX)/bin
cp -f dwmblocks $(DESTDIR)$(PREFIX)/bin
chmod 755 $(DESTDIR)$(PREFIX)/bin/dwmblocks
uninstall:
rm -f $(DESTDIR)$(PREFIX)/bin/dwmblocks