Makefile 570 B

12345678910111213141516171819202122232425
  1. SHORT=ipfs-cap2pfs
  2. LONG=ipfs-p2p-file-system
  3. all: $(LONG).pdf
  4. $(LONG).pdf: $(SHORT).tex sig-alternate.cls $(SHORT).bib
  5. pdflatex $(SHORT).tex
  6. bibtex $(SHORT)
  7. pdflatex $(SHORT).tex
  8. pdflatex $(SHORT).tex
  9. mv $(SHORT).pdf $(LONG).pdf
  10. clean:
  11. rm *.bbl *.aux *.dvi *.blg *.log *.gnuplot *.table
  12. watch:
  13. -make
  14. @echo "[watching *.tex for recompilation]"
  15. # for portability, use watchmedo -- pip install watchmedo
  16. @watchmedo shell-command --patterns="*.tex;" --recursive \
  17. --command='make' .
  18. publish: $(LONG).pdf
  19. scp $(LONG).pdf benet.ai:/var/static/t/$(LONG).pdf