This contains my bachelors thesis and associated tex files, code snippets and maybe more. Topic: Data Movement in Heterogeneous Memories with Intel Data Streaming Accelerator
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.1 KiB

  1. TXTFILES := mustread.txt manpage.txt
  2. BIBFILES := own.bib
  3. # NOTE: Remember to check out the gosh submodule using
  4. # git submodule init
  5. # git submodule update
  6. GOSHDIR := ../../gosh
  7. GOSH := $(GOSHDIR)/gosh
  8. TXT2TEX_OPT := --style manual.gosh
  9. TXT2MAN_OPT := --style $(GOSHDIR)/man.gosh
  10. TEXFILES := $(patsubst %.txt, %.tex,$(TXTFILES))
  11. PDFFILES := $(TEXFILES:.tex=.pdf)
  12. MANPAGES := checkbiw.1 bugsinwriting.7
  13. all:: mustread.pdf $(MANPAGES)
  14. # Make sure the corresponding txt files are the first dependency of
  15. # each manpage -- the rule to create the manpages depends on this.
  16. checkbiw.1: manpage.txt
  17. bugsinwriting.7: mustread.txt
  18. $(MANPAGES): $(GOSHDIR)/man.gosh $(GOSH)
  19. $(TEXFILES): manual.gosh $(GOSH)
  20. $(PDFFILES) $(DVIFILES): $(BIBFILES)
  21. clean::
  22. rm -f *.aux *.bbl *.blg *.log *.ps *.toc *.pdf *.dvi *.idx *.new \
  23. $(TEXFILES) $(MANPAGES)
  24. cleanall:: clean
  25. rm -f *~
  26. $(MANPAGES):
  27. $(GOSH) $(TXT2MAN_OPT) $< > $@.new
  28. mv $@.new $@
  29. .PRECIOUS: .tex
  30. %.tex: %.txt
  31. $(GOSH) $(TXT2TEX_OPT) $< > $@.new
  32. mv $@.new $@
  33. %.pdf: %.tex
  34. pdflatex $<
  35. bibtex $(basename $<) || true
  36. pdflatex $<
  37. pdflatex $<