Makefile (517B)
1 PREFIX = /usr/local 2 BINDIR = ${PREFIX}/bin 3 4 DIGESTEXTRA = \ 5 md5 \ 6 sha1 \ 7 sha224 \ 8 sha3 \ 9 sha384 \ 10 sha512 11 12 all: 13 @echo Run \'make install\' to install 14 15 install: 16 mkdir -p ${DESTDIR}${BINDIR} 17 cp sha256 ${DESTDIR}${BINDIR} 18 chmod 755 ${DESTDIR}${BINDIR}/sha256 19 for bin in ${DIGESTEXTRA}; do \ 20 ln -sf sha256 ${DESTDIR}${BINDIR}/$${bin}; \ 21 done 22 23 uninstall: 24 for bin in sha256 ${DIGESTEXTRA}; do \ 25 rm -f ${DESTDIR}${BINDIR}/$${bin}; \ 26 done 27 28 .PHONY: all install uninstall