# ~jhs/public_html/src/Makefile by Julian Stacey SUBDIR += bsd all: fixes.html index.html obj BLA!= cd ${.CURDIR} ; find bsd/fixes -type f -print HEAD=head -6 # The head above should be changed to cat till blank line fixes.html: fixes.lmth # It generates fixes.lmth in /usr/obj/`pwd` but I dont care. fixes.lmth: ${BLA} Makefile echo "" > $@ echo " " >> $@ echo "<!-- Do Not Hand Edit - This File is generated by Makefile -->" \ >> $@ echo " " >> $@ echo " " >> $@ echo "Julian Stacey's ~/src/bsd/fixes" >> $@ echo "

Julian Stacey's" >> $@ echo "
Index of ~jhs/src/bsd/fixes

" >> $@ echo "

Generated `date` by " >> $@ echo "Makefile

" >> $@ (cd ${.CURDIR} ; find bsd/fixes -type f -print ) | \ grep -v .ignore | sort > $@.tmp.1 echo "

Generic Patches & New Code

" >> $@ grep -v /jhs/ $@.tmp.1 > $@.tmp.2 for i in `cat $@.tmp.2` ; do \ echo "
  • $$i
    " 		>> $@ ; \
    		${HEAD} ${.CURDIR}/$$i 				>> $@ ; \
            	echo "
    " >> $@ ; \ done echo "

  • Patches applied to jhs systems, " >> $@ echo "not for generic application

    " >> $@ .if exists (/site) grep /jhs/ $@.tmp.1 > $@.tmp.2 .else # There are no /jhs/ components in a chroot cdrom, so use '-' -grep /jhs/ $@.tmp.1 > $@.tmp.2 .endif for i in `cat $@.tmp.2` ; do \ echo "
  • $$i
    " 		>> $@ ; \
    		${HEAD} ${.CURDIR}/$$i 				>> $@ ; \
            	echo "
    " >> $@ ; \ done @rm $@.tmp.[12] echo -n '

  • ' >> $@ echo '' >> $@ chmod 644 $@ clean: # pre 4.7 _SUBDIRUSE rm -f fixes.html.tmp.[12] @echo "You might want \"make cleanmore\"" cleanmore: clean rm -f ${.CURDIR}/fixes.html ${.CURDIR}/fixes.lmth @echo "Web browsers may miss fixes.html" .include .include