27 lines
537 B
Makefile
27 lines
537 B
Makefile
|
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
|