glazier

the original window manipulator
Log | Files | Refs | Submodules | README | LICENSE

commit 862e9a8d8fdecf9571fb7c345ae9ac2c7f80c266
parent 09ceebdbe164fca2f4d38d01ad4c882454aac9b8
Author: Willy Goiffon <dev@z3bra.org>
Date:   Fri, 18 Oct 2019 21:56:23 +0200

Replace mkfile with makefile

Diffstat:
config.mk | 8++++----
makefile | 20++++++++++++++++++++
mkfile | 27---------------------------
3 files changed, 24 insertions(+), 31 deletions(-)

diff --git a/config.mk b/config.mk @@ -1,12 +1,12 @@ VERSION = 0.0 CC = cc -LD = ${CC} +LD = $(CC) PREFIX = /usr/local MANDIR = ${PREFIX}/man CPPFLAGS = -I./libwm -DVERSION=\"${VERSION}\" -CFLAGS = ${CPPFLAGS} -Wall -Wextra -pedantic -g -LDFLAGS = -LIBS = -lxcb +CFLAGS = $(CPPFLAGS) -Wall -Wextra -pedantic -g +LDFLAGS = -L./libwm +LDLIBS = -lxcb -lwm diff --git a/makefile b/makefile @@ -0,0 +1,20 @@ +include config.mk + +SRC = glazier.c + +glazier: glazier.o libwm/libwm.a + +clean: + rm -f glazier *.o + +install: glazier + mkdir -p $(DESTDIR)$(PREFIX)/bin + cp glazier $(DESTDIR)$(PREFIX)/bin/glazier + chmod 755 $(DESTDIR)$(PREFIX)/bin/glazier + mkdir -p $(DESTDIR)$(MANPREFIX)/man1 + cp glazier.1 $(DESTDIR)$(MANPREFIX)/man1/glazier.1 + chmod 644 $(DESTDIR)$(MANPREFIX)/man1/glazier.1 + +uninstall: + rm $(DESTDIR)$(PREFIX)/bin/glazier + rm $(DESTDIR)$(MANPREFIX)/man1/glazier.1 diff --git a/mkfile b/mkfile @@ -1,27 +0,0 @@ -<config.mk - -LIBWM_SRC = `{find libwm/ -name '*.c'} - -SRC = glazier.c $LIBWM_SRC -OBJ = ${SRC:%.c=%.o} - -glazier: $OBJ - $LD -o $target $prereq $LDFLAGS $LIBS - -%.o: %.c - $CC $CFLAGS -c $stem.c -o $stem.o - -clean:V: - rm -f $OBJ glazier - -install:V: glazier - mkdir -p ${DESTDIR}${PREFIX}/bin - cp glazier ${DESTDIR}${PREFIX}/bin/glazier - chmod 755 ${DESTDIR}${PREFIX}/bin/glazier - mkdir -p ${DESTDIR}${MANDIR}/man1 - cp glazier.1 ${DESTDIR}${MANDIR}/man1/glazier.1 - chmod 644 ${DESTDIR}${MANDIR}/man1/glazier.1 - -uninstall:V: - rm ${DESTDIR}${PREFIX}/bin/glazier - rm ${DESTDIR}${MANDIR}/man1/glazier.1