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