From 7bc460eb28b829537ba9b117eba238d4eaf7b059 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Tue, 16 Jun 2020 20:08:25 +0530 Subject: Init commit with all the shit --- Makefile | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..c655b67 --- /dev/null +++ b/Makefile @@ -0,0 +1,40 @@ +# daemonic - dynamic window manager +# See LICENSE file for copyright and license details. + +include config.mk + +SRC = daemonic.c +OBJ = ${SRC:.c=.o} + +all: clean options daemonic + +options: + @echo daemonic build options: + @echo "CFLAGS = ${CFLAGS}" + @echo "LDFLAGS = ${LDFLAGS}" + @echo "CC = ${CC}" + +.c.o: + ${CC} -c ${CFLAGS} $< + +${OBJ}: config.mk + +daemonic: ${OBJ} + ${CC} -o $@ ${OBJ} ${LDFLAGS} + +clean: + rm -f daemonic ${OBJ} + +install: all + mkdir -p ${DESTDIR}${PREFIX}/bin + cp -f daemonic ${DESTDIR}${PREFIX}/bin + chmod 755 ${DESTDIR}${PREFIX}/bin/daemonic + mkdir -p ${DESTDIR}${MANPREFIX}/man1 + sed "s/VERSION/${VERSION}/g" < daemonic.1 > ${DESTDIR}${MANPREFIX}/man1/daemonic.1 + chmod 644 ${DESTDIR}${MANPREFIX}/man1/daemonic.1 + +uninstall: + rm -f ${DESTDIR}${PREFIX}/bin/daemonic\ + ${DESTDIR}${MANPREFIX}/man1/daemonic.1 + +.PHONY: all options clean dist install uninstall -- cgit v1.3.1