# for automatic generation of web contents SRC = cafe.html chou.html salade.html\ prix.html photo1.html horoscope.html nombre.html\ pronon1.html pronon2.html\ guide.html index.html # Kanji Converter KF = nkf -e # Multilingual filter MF = multilingual.awk # net news filter NF = nn2html.awk # plain2html.awk PF = plain2html.awk # latin char converter CF = charconv.awk all: ${SRC} clean: - rm *~ purge: clean - rm ${SRC} - rm *.en.html - rm *.fr.html cafe.html: cafe.nn ${KF} ${.ALLSRC} | ${NF} -v TI="cafe" | ${CF}> ${.TARGET} chou.html: chou.nn ${KF} chou.nn | ${NF} -v TI="chou" | ${CF}> ${.TARGET} horoscope.html: horoscope.nn ${KF} ${.ALLSRC} | ${NF} -v TI="horoscope chinois" | ${CF}> ${.TARGET} nombre.html: nombre.nn ${KF} ${.ALLSRC} | ${NF} -v TI="nombres" | ${CF}> ${.TARGET} photo1.html: photo1.txt ${KF} photo1.txt | ${PF} ${PO} | ${CF}> ${.TARGET} prix.html: prix.txt ${KF} prix.txt | ${PF} ${PO} -v TI="prix" -v TS="/" | ${CF}> ${.TARGET} pronon1.html: pronon1.txt ${KF} pronon1.txt | sort -u | ${PF} ${PO} -v TS="/" -v TI="prononciation reguliere"| ${CF}> ${.TARGET} pronon2.html: pronon2.txt ${KF} pronon2.txt | sort -u | ${PF} ${PO} -v TS="/" -v TI="prononciation irreguliere" | ${CF}> ${.TARGET} salade.html: salade.nn ${KF} salade.nn | ${NF} -v TI="salade" | ${CF}> ${.TARGET} index.html:: clean ../scripts/magic.sh > ${.TARGET} guide.html: guide.txt multijef.sh guide