Makefile 425 B

12345678910111213141516171819202122
  1. all: doc.html doc.txt
  2. doc.html: doc.in parameters.txt mktable.py
  3. ./mktable.py >table.html
  4. markdown doc.in | \
  5. sed -e "s,<h6>table</h6>,m4_include(\`table.html')," | \
  6. m4 -P >doc.html
  7. rm table.html
  8. doc.txt: doc.in parameters.txt
  9. sed <doc.in -e "s,###### table,m4_include(\`parameters.txt')," \
  10. -e "s,\`\([^\`]*\)\`,'\1',g" | m4 -P >doc.txt
  11. clean:
  12. rm doc.html doc.txt