# cpywm - dynamic window manager # See LICENSE file for copyright and license details. include config.mk SRC := $(shell find src/ -type f -name "*.c") OBJ = ${SRC:.c=.o} .PHONY: all options clean dist install uninstall all: options cpywm options: @echo "cpywm build options:" @echo "PYLDFLAGS =" ${PYLDFLAGS} @echo "PYCFLAGS =" ${PYCFLAGS} @echo "CFLAGS = ${CFLAGS}" @echo "LDFLAGS = ${LDFLAGS}" @echo "CC = ${CC}" .c.o: ${CC} -c ${PYCFLAGS} ${CFLAGS} $< ${OBJ}: config.mk cpywm: ${OBJ} ${CC} -o $@ ${OBJ} ${PYLDFLAGS} ${LDFLAGS} clean: rm -f cpywm *.o # dist: clean # mkdir -p cpywm-${VERSION} # cp -R LICENSE Makefile README config.def.h config.mk\ # cpywm.1 drw.h util.h ${SRC} cpywm.png transient.c cpywm-${VERSION} # tar -cf cpywm-${VERSION}.tar cpywm-${VERSION} # gzip cpywm-${VERSION}.tar # rm -rf cpywm-${VERSION} # install: all # mkdir -p ${DESTDIR}${PREFIX}/bin # cp -f cpywm ${DESTDIR}${PREFIX}/bin # chmod 755 ${DESTDIR}${PREFIX}/bin/cpywm # mkdir -p ${DESTDIR}${MANPREFIX}/man1 # sed "s/VERSION/${VERSION}/g" < cpywm.1 > ${DESTDIR}${MANPREFIX}/man1/cpywm.1 # chmod 644 ${DESTDIR}${MANPREFIX}/man1/cpywm.1 # uninstall: # rm -f ${DESTDIR}${PREFIX}/bin/cpywm\ # ${DESTDIR}${MANPREFIX}/man1/cpywm.1