Skip to content

Commit

Permalink
Removing priv latex build
Browse files Browse the repository at this point in the history
Removing priv latex build
  • Loading branch information
wmat committed Jan 29, 2024
1 parent d30efc9 commit a7854a7
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions build/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ ASCIIDOCTOR_OPTS := --attribute=mathematical-format=svg \
SRCDIR := ../src

# LaTeX source and related files
SRCS := $(wildcard $(SRCDIR)/latex/*.tex)
FIGS := $(wildcard $(SRCDIR)/latex/figs/*)
BIBS := $(SRCDIR)/latex/riscv-spec.bib
#SRCS := $(wildcard $(SRCDIR)/latex/*.tex)
#FIGS := $(wildcard $(SRCDIR)/latex/figs/*)
#BIBS := $(SRCDIR)/latex/riscv-spec.bib

# LaTeX build tools
PDFLATEX := TEXINPUTS=$(SRCDIR)/latex: pdflatex -interaction=nonstopmode -halt-on-error
BIBTEX := BIBINPUTS=$(SRCDIR)/latex: bibtex
#PDFLATEX := TEXINPUTS=$(SRCDIR)/latex: pdflatex -interaction=nonstopmode -halt-on-error
#BIBTEX := BIBINPUTS=$(SRCDIR)/latex: bibtex

# Temporary files to clean up for LaTeX build
JUNK := *.pdf *.aux *.log *.bbl *.blg *.toc *.out *.fdb_latexmk *.fls *.synctex.gz
Expand Down Expand Up @@ -78,13 +78,13 @@ unpriv-isa-asciidoc.html: $(SRCDIR)/riscv-unprivileged.adoc
asciidoctor $(ASCIIDOCTOR_OPTS) --out-file=$@ $<

# LaTeX build for Privileged ISA
priv-latex: riscv-privileged.pdf
#priv-latex: riscv-privileged.pdf

riscv-privileged.pdf: $(SRCDIR)/latex/riscv-privileged.tex $(SRCS) $(FIGS) $(BIBS)
$(PDFLATEX) riscv-privileged
$(BIBTEX) riscv-privileged
$(PDFLATEX) riscv-privileged
$(PDFLATEX) riscv-privileged
#riscv-privileged.pdf: $(SRCDIR)/latex/riscv-privileged.tex $(SRCS) $(FIGS) $(BIBS)
# $(PDFLATEX) riscv-privileged
# $(BIBTEX) riscv-privileged
# $(PDFLATEX) riscv-privileged
# $(PDFLATEX) riscv-privileged

clean:
@if [ -f priv-isa-asciidoc.pdf ]; then \
Expand All @@ -103,11 +103,11 @@ clean:
echo "Removing unpriv-isa-asciidoc.html"; \
rm -f unpriv-isa-asciidoc.html; \
fi
@echo "Cleaning up files from LaTeX build"
@cd $(SRCDIR)/latex; \
for file in $(JUNK); do \
if [ -f "$$file" ]; then \
echo "Removing $$file"; \
rm -f "$$file"; \
fi; \
done
# @echo "Cleaning up files from LaTeX build"
# @cd $(SRCDIR)/latex; \
# for file in $(JUNK); do \
# if [ -f "$$file" ]; then \
# echo "Removing $$file"; \
# rm -f "$$file"; \
# fi; \
# done

0 comments on commit a7854a7

Please sign in to comment.