6 all: clean options dvtm
9 @echo dvtm build options
:
10 @echo
"CFLAGS = ${CFLAGS}"
11 @echo
"LDFLAGS = ${LDFLAGS}"
15 cp config.def.h config.h
19 @
${CC} -c
${CFLAGS} $<
21 ${OBJ}: config.h config.mk
25 @
${CC} -o
$@
${OBJ} ${LDFLAGS}
28 @make CFLAGS
='${DEBUG_CFLAGS}'
32 @
rm -f dvtm
${OBJ} dvtm-
${VERSION}.
tar.gz
35 @echo creating
dist tarball
36 @mkdir
-p dvtm-
${VERSION}
37 @cp
-R LICENSE Makefile README config.def.h config.mk \
38 ${SRC} vt.h forkpty-aix.c tile.c bstack.c tstack.c grid.c fullscreen.c \
39 fibonacci.c dvtm-status dvtm.
info dvtm
.1 dvtm-
${VERSION}
40 @
tar -cf dvtm-
${VERSION}.
tar dvtm-
${VERSION}
41 @gzip dvtm-
${VERSION}.
tar
42 @
rm -rf dvtm-
${VERSION}
45 @echo stripping executable
47 @echo installing executable file to
${DESTDIR}${PREFIX}/bin
48 @mkdir
-p
${DESTDIR}${PREFIX}/bin
49 @cp
-f dvtm
${DESTDIR}${PREFIX}/bin
50 @chmod
755 ${DESTDIR}${PREFIX}/bin
/dvtm
51 @cp
-f dvtm-status
${DESTDIR}${PREFIX}/bin
52 @chmod
755 ${DESTDIR}${PREFIX}/bin
/dvtm-status
53 @echo installing manual page to
${DESTDIR}${MANPREFIX}/man1
54 @mkdir
-p
${DESTDIR}${MANPREFIX}/man1
55 @sed
"s/VERSION/${VERSION}/g" < dvtm
.1 > ${DESTDIR}${MANPREFIX}/man1
/dvtm
.1
56 @chmod
644 ${DESTDIR}${MANPREFIX}/man1
/dvtm
.1
57 @echo installing terminfo description
58 @tic
-o
${DESTDIR}/usr
/share
/terminfo
-s dvtm.
info
61 @echo removing executable file from
${DESTDIR}${PREFIX}/bin
62 @
rm -f
${DESTDIR}${PREFIX}/bin
/dvtm
63 @
rm -f
${DESTDIR}${PREFIX}/bin
/dvtm-status
64 @echo removing manual page from
${DESTDIR}${MANPREFIX}/man1
65 @
rm -f
${DESTDIR}${MANPREFIX}/man1
/dvtm
.1
67 .PHONY
: all options
clean dist install uninstall debug