$OpenBSD: patch-Makefile,v 1.2 2012/11/05 13:24:39 zinke Exp $ --- Makefile.orig Fri Nov 2 20:08:27 2012 +++ Makefile Sun Nov 4 16:32:45 2012 @@ -18,14 +18,12 @@ config.h: cp config.def.h config.h .c.o: - @echo CC $< - @${CC} -c ${CFLAGS} $< + ${CC} -c ${CFLAGS} $< ${OBJ}: config.h config.mk st: ${OBJ} - @echo CC -o $@ - @${CC} -o $@ ${OBJ} ${LDFLAGS} + ${CC} -o $@ ${OBJ} ${LDFLAGS} clean: @echo cleaning @@ -40,17 +38,13 @@ dist: clean @rm -rf st-${VERSION} install: all - @echo installing executable file to ${DESTDIR}${PREFIX}/bin - @mkdir -p ${DESTDIR}${PREFIX}/bin - @cp -f st ${DESTDIR}${PREFIX}/bin - @chmod 755 ${DESTDIR}${PREFIX}/bin/st - @echo installing manual page to ${DESTDIR}${MANPREFIX}/man1 - @mkdir -p ${DESTDIR}${MANPREFIX}/man1 - @sed "s/VERSION/${VERSION}/g" < st.1 > ${DESTDIR}${MANPREFIX}/man1/st.1 - @chmod 644 ${DESTDIR}${MANPREFIX}/man1/st.1 - @echo If things do not seem to work, be sure that there is no \ - floating st terminfo in the .terminfo directory in your home dir. - @tic -s st.info + ${BSD_INSTALL_PROGRAM_DIR} ${DESTDIR}${PREFIX}/bin + ${BSD_INSTALL_PROGRAM} st ${DESTDIR}${PREFIX}/bin + ${BSD_INSTALL_MAN_DIR} ${DESTDIR}${MANPREFIX}/man1 + sed "s/VERSION/${VERSION}/g" < st.1 > st.1.tmp + mv st.1.tmp st.1 + ${BSD_INSTALL_MAN} st.1 ${DESTDIR}${MANPREFIX}/man1 + tic -s -o ${DESTDIR}${PREFIX}/share/terminfo st.info uninstall: @echo removing executable file from ${DESTDIR}${PREFIX}/bin