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

TXTFILES := mustread.txt manpage.txt
BIBFILES := own.bib
# NOTE: Remember to check out the gosh submodule using
# git submodule init
# git submodule update
GOSHDIR := ../../gosh
GOSH := $(GOSHDIR)/gosh
TXT2TEX_OPT := --style manual.gosh
TXT2MAN_OPT := --style $(GOSHDIR)/man.gosh
TEXFILES := $(patsubst %.txt, %.tex,$(TXTFILES))
PDFFILES := $(TEXFILES:.tex=.pdf)
MANPAGES := checkbiw.1 bugsinwriting.7
all:: mustread.pdf $(MANPAGES)
# Make sure the corresponding txt files are the first dependency of
# each manpage -- the rule to create the manpages depends on this.
checkbiw.1: manpage.txt
bugsinwriting.7: mustread.txt
$(MANPAGES): $(GOSHDIR)/man.gosh $(GOSH)
$(TEXFILES): manual.gosh $(GOSH)
$(PDFFILES) $(DVIFILES): $(BIBFILES)
clean::
rm -f *.aux *.bbl *.blg *.log *.ps *.toc *.pdf *.dvi *.idx *.new \
$(TEXFILES) $(MANPAGES)
cleanall:: clean
rm -f *~
$(MANPAGES):
$(GOSH) $(TXT2MAN_OPT) $< > $@.new
mv $@.new $@
.PRECIOUS: .tex
%.tex: %.txt
$(GOSH) $(TXT2TEX_OPT) $< > $@.new
mv $@.new $@
%.pdf: %.tex
pdflatex $<
bibtex $(basename $<) || true
pdflatex $<
pdflatex $<