set_wm_class/Makefile

27 lines
537 B
Makefile
Raw Normal View History

2024-10-12 12:20:01 +01:00
PREFIX := /usr/local
CC := cc
LDFLAGS := -lX11
all: options set_wm_class
options:
@echo set_wm_class build options:
@echo "LDFLAGS = ${LDFLAGS}"
@echo "CC = ${CC}"
set_wm_class: set_wm_class.c
${CC} -o set_wm_class set_wm_class.c ${LDFLAGS}
clean:
rm -f set_wm_class
install: set_wm_class
mkdir -p ${DESTDIR}${PREFIX}/bin
cp -f set_wm_class ${DESTDIR}${PREFIX}/bin
chmod 755 ${DESTDIR}${PREFIX}/bin/set_wm_class
uninstall:
rm -f ${DESTDIR}${PREFIX}/bin/set_wm_class
.PHONY: all options clean install uninstall