dwm-nest/Makefile

56 lines
1.2 KiB
Makefile
Raw Normal View History

2006-07-10 14:38:18 +00:00
# gridwm - grid window manager
# (C)opyright MMVI Anselm R. Garbe
include config.mk
2006-07-12 23:30:55 +00:00
SRC = client.c draw.c event.c kb.c mouse.c util.c wm.c
OBJ = ${SRC:.c=.o}
MAN1 = gridwm.1
BIN = gridwm
all: config gridwm
2006-07-10 14:38:18 +00:00
@echo finished
2006-07-10 14:49:43 +00:00
config:
@echo gridwm build options:
@echo "LIBS = ${LIBS}"
@echo "CFLAGS = ${CFLAGS}"
@echo "LDFLAGS = ${LDFLAGS}"
@echo "CC = ${CC}"
2006-07-10 14:38:18 +00:00
.c.o:
@echo CC $<
@${CC} -c ${CFLAGS} $<
2006-07-12 23:30:55 +00:00
${OBJ}: wm.h
2006-07-10 14:38:18 +00:00
2006-07-12 23:30:55 +00:00
gridwm: ${OBJ}
2006-07-10 14:38:18 +00:00
@echo LD $@
2006-07-12 23:30:55 +00:00
@${CC} -o $@ ${OBJ} ${LDFLAGS}
2006-07-10 14:38:18 +00:00
clean:
2006-07-12 23:30:55 +00:00
rm -f gridwm *.o core
2006-07-10 14:49:43 +00:00
dist: clean
mkdir -p gridwm-${VERSION}
cp -R Makefile README LICENSE config.mk *.h *.c ${MAN} gridwm-${VERSION}
2006-07-10 14:49:43 +00:00
tar -cf gridwm-${VERSION}.tar gridwm-${VERSION}
gzip gridwm-${VERSION}.tar
rm -rf gridwm-${VERSION}
install: all
@mkdir -p ${DESTDIR}${PREFIX}/bin
@cp -f ${BIN} ${DESTDIR}${PREFIX}/bin
@echo installed executable files to ${DESTDIR}${PREFIX}/bin
@mkdir -p ${DESTDIR}${MANPREFIX}/man1
@cp -f ${MAN1} ${DESTDIR}${MANPREFIX}/man1
@echo installed manual pages to ${DESTDIR}${MANPREFIX}/man1
uninstall:
for i in ${BIN}; do \
rm -f ${DESTDIR}${PREFIX}/bin/`basename $$i`; \
done
for i in ${MAN1}; do \
rm -f ${DESTDIR}${MANPREFIX}/man1/`basename $$i`; \
done