equal
deleted
inserted
replaced
1 # gridwm - grid window manager |
1 # gridwm - grid window manager |
2 # (C)opyright MMVI Anselm R. Garbe |
2 # (C)opyright MMVI Anselm R. Garbe |
3 |
3 |
4 include config.mk |
4 include config.mk |
5 |
5 |
6 SRC = wm.c |
6 SRC = wm.c |
7 OBJ = ${SRC:.c=.o} |
7 OBJ = ${SRC:.c=.o} |
|
8 MAN = gridwm.1 |
|
9 BIN = gridwm gridmenu |
8 |
10 |
9 all: gridwm |
11 all: config gridwm |
10 @echo finished |
12 @echo finished |
|
13 |
|
14 config: |
|
15 @echo gridwm build options: |
|
16 @echo "LIBS = ${LIBS}" |
|
17 @echo "CFLAGS = ${CFLAGS}" |
|
18 @echo "LDFLAGS = ${LDFLAGS}" |
|
19 @echo "CC = ${CC}" |
11 |
20 |
12 .c.o: |
21 .c.o: |
13 @echo CC $< |
22 @echo CC $< |
14 @${CC} -c ${CFLAGS} $< |
23 @${CC} -c ${CFLAGS} $< |
15 |
24 |
19 @echo LD $@ |
28 @echo LD $@ |
20 @${CC} -o $@ ${OBJ} ${X11LDFLAGS} |
29 @${CC} -o $@ ${OBJ} ${X11LDFLAGS} |
21 |
30 |
22 clean: |
31 clean: |
23 rm -f gridwm *.o |
32 rm -f gridwm *.o |
|
33 |
|
34 dist: clean |
|
35 mkdir -p gridwm-${VERSION} |
|
36 cp -R Makefile README LICENSE config.mk ${SRC} ${MAN} gridwm-${VERSION} |
|
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 |