2 # See LICENSE file for copyright and license details.
12 @echo st build options:
13 @echo "CFLAGS = ${CFLAGS}"
14 @echo "LDFLAGS = ${LDFLAGS}"
19 @${CC} -c ${CFLAGS} $<
21 ${OBJ}: config.h config.mk
25 @${CC} -o $@ ${OBJ} ${LDFLAGS}
29 @rm -f st ${OBJ} st-${VERSION}.tar.gz
32 @echo creating dist tarball
33 @mkdir -p st-${VERSION}
34 @cp -R LICENSE Makefile README config.mk st.h ${SRC} st-${VERSION}
35 @tar -cf st-${VERSION}.tar st-${VERSION}
36 @gzip st-${VERSION}.tar
40 @echo installing executable file to ${DESTDIR}${PREFIX}/bin
41 @mkdir -p ${DESTDIR}${PREFIX}/bin
42 @cp -f st ${DESTDIR}${PREFIX}/bin
43 @chmod 755 ${DESTDIR}${PREFIX}/bin/st
47 @echo removing executable file from ${DESTDIR}${PREFIX}/bin
48 @rm -f ${DESTDIR}${PREFIX}/bin/st
50 .PHONY: all options clean dist install uninstall