Initial commit for build of dwmblocks

This commit is contained in:
Alex Selimov 2024-01-25 19:34:10 -05:00
commit e60906dbc6
14 changed files with 416 additions and 0 deletions

17
Makefile Normal file
View file

@ -0,0 +1,17 @@
PREFIX ?= /usr/local
CC ?= cc
LDFLAGS = -lX11
output: dwmblocks.c blocks.def.h blocks.h
${CC} dwmblocks.c $(LDFLAGS) -o dwmblocks
blocks.h:
cp blocks.def.h $@
clean:
rm -f *.o *.gch dwmblocks
install: output
mkdir -p $(DESTDIR)$(PREFIX)/bin
install -m 0755 dwmblocks $(DESTDIR)$(PREFIX)/bin/dwmblocks
uninstall:
rm -f $(DESTDIR)$(PREFIX)/bin/dwmblocks