all: html types.txt.echo: @# find -s www* -type f -exec file {} \; @echo "Run this manually: find -s www* -type f -exec file {} \\;" BLA!= find www* -type f -print links.lmth: ${BLA} Makefile echo "" > ${.CURDIR}/$@ echo "Julian H. Stacey's ~jhs/harries/archive/links.html" >> ${.CURDIR}/$@ echo "

Julian H. Stacey's" >> ${.CURDIR}/$@ echo '
Index of ~jhs/harries/archive/www*

' >> ${.CURDIR}/$@ echo "

Generated `date` by " >> ${.CURDIR}/$@ echo "Makefile

" >> ${.CURDIR}/$@ echo "

" >> ${.CURDIR}/$@ @# Cant use ${BLA} in next line as need filenames one per line. (cd ${.CURDIR}; find www* -type f \( ! -name links.html.tmp \) \ -print ) | sort > ${HOME}/tmp/$@.tmp for i in `cat ${HOME}/tmp/$@.tmp` ; do \ echo "
  • $$i
    " 		>> ${.CURDIR}/$@ ; \
    		ls -l $$i | 	\
    			sed -e s/-r--r--r--// | \
    			sed -e s/jhs// |	\
    			sed -e s/staff// |	\
    			sed -e s/1//		\
    								>> ${.CURDIR}/$@ ; \
    		file -b $$i					>> ${.CURDIR}/$@ ; \
            	echo "
    " >> ${.CURDIR}/$@ ; \ done -rm ${HOME}/tmp/$@.tmp echo '

  • ' >> ${.CURDIR}/$@ echo '' >> ${.CURDIR}/$@ echo '' >> ${.CURDIR}/$@ chmod 644 $@ .include