Makefile 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. AEA_TEMPLATE_URL=https://www.aeaweb.org/content/file?id=57
  2. all: inst /usr/local/bin/pdflatex
  3. inst: aea_template \
  4. template.yaml \
  5. skeleton/aea.bst \
  6. skeleton/AEA.cls \
  7. skeleton/multicol.sty \
  8. skeleton/setspace.sty \
  9. skeleton/references.bib
  10. aea_template.zip:
  11. curl "$(AEA_TEMPLATE_URL)" -o $@
  12. aea_template: aea_template.zip
  13. unzip -j $< "latex_templates/*" -d $@
  14. template.yaml:
  15. mkdir -p $(dir $@)
  16. echo "name: American Economics Association journals\ndescription: >\n Template for creating an article for submission to journals published by the American Economics Association: AEJ, AER, JEL, PP.\ncreate_dir: true" > $@
  17. resources/template.tex: aer_template/AER-Article.tex
  18. mkdir -p $(dir $@)
  19. ## cp $< $@
  20. ## I edited the included template to be compatible with R Markdown
  21. skeleton/aea.bst: aea_template/aea.bst
  22. mkdir -p $(dir $@)
  23. cp $< $@
  24. skeleton/AEA.cls: aea_template/AEA.cls
  25. mkdir -p $(dir $@)
  26. cp $< $@
  27. skeleton/multicol.sty: aea_template/multicol.sty
  28. mkdir -p $(dir $@)
  29. cp $< $@
  30. skeleton/setspace.sty: aea_template/setspace.sty
  31. mkdir -p $(dir $@)
  32. cp $< $@
  33. skeleton/references.bib:
  34. mkdir -p $(dir $@)
  35. touch $@
  36. /usr/local/bin/pdflatex:
  37. ln -s /Library/TeX/Distributions/.DefaultTeX/Contents/Programs/texbin/pdflatex /usr/local/bin
  38. clean:
  39. rm -rf aea_template*