dwmblocks/Makefile

38 lines
936 B
Makefile
Raw Normal View History

2023-09-09 02:11:00 -07:00
include config.mk
2023-02-21 12:15:57 -08:00
2023-09-08 23:39:55 -07:00
all: options dwmblocks
2023-02-21 12:15:57 -08:00
options:
@echo dwmblocks build options:
2023-09-09 02:11:00 -07:00
@echo "CFLAGS = ${CFLAGS} ${NO_X}"
2023-02-21 12:15:57 -08:00
@echo "LDFLAGS = ${LDFLAGS}"
@echo "CC = ${CC}"
2023-02-23 09:22:54 -08:00
@echo "PULSEFLAGS = ${PULSEFLAGS}"
2023-02-21 12:15:57 -08:00
2023-09-08 23:39:55 -07:00
dwmblocks: dwmblocks.c pulse-listener.c blocks.def.h blocks.h
2023-09-09 02:11:00 -07:00
${CC} ${NO_X} -o dwmblocks dwmblocks.c pulse-listener.c ${CFLAGS} ${PULSEFLAGS} ${LDFLAGS}
2023-02-23 09:22:54 -08:00
2023-02-21 12:15:57 -08:00
blocks.h:
cp blocks.def.h $@
2023-09-15 15:03:02 -07:00
config.mk:
cp config.def.mk $@
2023-02-21 12:15:57 -08:00
clean:
2023-09-08 23:39:55 -07:00
rm -f *.o *.gch dwmblocks
2023-02-21 12:15:57 -08:00
install: dwmblocks
mkdir -p ${DESTDIR}${PREFIX}/bin
cp -f dwmblocks ${DESTDIR}${PREFIX}/bin
chmod 755 ${DESTDIR}${PREFIX}/bin/dwmblocks
install -m0755 scripts/* ${DESTDIR}${PREFIX}/bin
uninstall:
2023-05-23 02:55:53 -07:00
rm -f ${DESTDIR}${PREFIX}/bin/dwmblocks \
${DESTDIR}${PREFIX}/bin/dwmblocks-battery \
${DESTDIR}${PREFIX}/bin/dwmblocks-network \
${DESTDIR}${PREFIX}/bin/dwmblocks-volume \
${DESTDIR}${PREFIX}/bin/dwmblocks-fcitx5
2023-02-21 12:15:57 -08:00
.PHONY: all options clean install uninstall