2 # See LICENSE file for copyright and license details.
12 @echo st build options
:
13 @echo
"CFLAGS = ${CFLAGS}"
14 @echo
"LDFLAGS = ${LDFLAGS}"
18 cp config.def.h config.h
22 @
${CC} -c
${CFLAGS} $<
24 ${OBJ}: config.h config.mk
28 @
${CC} -o
$@
${OBJ} ${LDFLAGS}
32 @
rm -f st
${OBJ} st-
${VERSION}.
tar.gz
35 @echo creating
dist tarball
36 @mkdir
-p st-
${VERSION}
37 @cp
-R LICENSE Makefile README config.mk config.def.h st.
info st
.1 ${SRC} st-
${VERSION}
38 @
tar -cf st-
${VERSION}.
tar st-
${VERSION}
39 @gzip st-
${VERSION}.
tar
43 @echo installing executable file to
${DESTDIR}${PREFIX}/bin
44 @mkdir
-p
${DESTDIR}${PREFIX}/bin
45 @cp
-f st
${DESTDIR}${PREFIX}/bin
46 @chmod
755 ${DESTDIR}${PREFIX}/bin
/st
47 @echo installing manual page to
${DESTDIR}${MANPREFIX}/man1
48 @mkdir
-p
${DESTDIR}${MANPREFIX}/man1
49 @sed
"s/VERSION/${VERSION}/g" < st
.1 > ${DESTDIR}${MANPREFIX}/man1
/st
.1
50 @chmod
644 ${DESTDIR}${MANPREFIX}/man1
/st
.1
51 @echo Please see the README file regarding the terminfo entry of st.
55 @echo removing executable file from
${DESTDIR}${PREFIX}/bin
56 @
rm -f
${DESTDIR}${PREFIX}/bin
/st
57 @echo removing manual page from
${DESTDIR}${MANPREFIX}/man1
58 @
rm -f
${DESTDIR}${MANPREFIX}/man1
/st
.1
60 .PHONY
: all options
clean dist install uninstall