author | Anselm R. Garbe <garbeam@wmii.de> |
Thu, 13 Jul 2006 01:30:55 +0200 | |
changeset 32 | 082c75b937b5 |
parent 27 | f96fb3fd8203 |
child 34 | cd30cce52b78 |
permissions | -rw-r--r-- |
0 | 1 |
# gridwm - grid window manager |
2 |
# (C)opyright MMVI Anselm R. Garbe |
|
3 |
||
4 |
include config.mk |
|
5 |
||
32 | 6 |
SRC = client.c draw.c event.c kb.c mouse.c util.c wm.c |
7 |
OBJ = ${SRC:.c=.o} |
|
8 |
MAN1 = gridwm.1 |
|
9 |
BIN = gridwm |
|
0 | 10 |
|
32 | 11 |
all: config gridwm |
0 | 12 |
@echo finished |
13 |
||
1 | 14 |
config: |
15 |
@echo gridwm build options: |
|
16 |
@echo "LIBS = ${LIBS}" |
|
17 |
@echo "CFLAGS = ${CFLAGS}" |
|
18 |
@echo "LDFLAGS = ${LDFLAGS}" |
|
19 |
@echo "CC = ${CC}" |
|
20 |
||
0 | 21 |
.c.o: |
22 |
@echo CC $< |
|
23 |
@${CC} -c ${CFLAGS} $< |
|
24 |
||
32 | 25 |
${OBJ}: wm.h |
3
e969f3575b7a
several new changes, made gridmenu working
Anselm R. Garbe <garbeam@wmii.de>
parents:
2
diff
changeset
|
26 |
|
32 | 27 |
gridwm: ${OBJ} |
3
e969f3575b7a
several new changes, made gridmenu working
Anselm R. Garbe <garbeam@wmii.de>
parents:
2
diff
changeset
|
28 |
@echo LD $@ |
32 | 29 |
@${CC} -o $@ ${OBJ} ${LDFLAGS} |
0 | 30 |
|
31 |
clean: |
|
32 | 32 |
rm -f gridwm *.o core |
1 | 33 |
|
34 |
dist: clean |
|
35 |
mkdir -p gridwm-${VERSION} |
|
3
e969f3575b7a
several new changes, made gridmenu working
Anselm R. Garbe <garbeam@wmii.de>
parents:
2
diff
changeset
|
36 |
cp -R Makefile README LICENSE config.mk *.h *.c ${MAN} gridwm-${VERSION} |
1 | 37 |
tar -cf gridwm-${VERSION}.tar gridwm-${VERSION} |
38 |
gzip gridwm-${VERSION}.tar |
|
39 |
rm -rf gridwm-${VERSION} |
|
40 |
||
41 |
install: all |
|
42 |
@mkdir -p ${DESTDIR}${PREFIX}/bin |
|
43 |
@cp -f ${BIN} ${DESTDIR}${PREFIX}/bin |
|
44 |
@echo installed executable files to ${DESTDIR}${PREFIX}/bin |
|
45 |
@mkdir -p ${DESTDIR}${MANPREFIX}/man1 |
|
46 |
@cp -f ${MAN1} ${DESTDIR}${MANPREFIX}/man1 |
|
47 |
@echo installed manual pages to ${DESTDIR}${MANPREFIX}/man1 |
|
48 |
||
49 |
uninstall: |
|
50 |
for i in ${BIN}; do \ |
|
51 |
rm -f ${DESTDIR}${PREFIX}/bin/`basename $$i`; \ |
|
52 |
done |
|
53 |
for i in ${MAN1}; do \ |
|
54 |
rm -f ${DESTDIR}${MANPREFIX}/man1/`basename $$i`; \ |
|
55 |
done |