Skip to content

Commit

Permalink
took Makefile out of build dir
Browse files Browse the repository at this point in the history
  • Loading branch information
sifferman committed Sep 6, 2023
1 parent 80b2673 commit bd12ae5
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ jobs:
sudo apt install -y texlive texlive-full
- name: Build
run: |
cd build && make
make
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
build
*.aux
*.bbl
*.blg
Expand Down
23 changes: 23 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@

BUILD_DIR := $(CURDIR)/build

PDFLATEX := TEXINPUTS=$(CURDIR):$(CURDIR)/src:$(CURDIR)/dependencies/ucsb/sty: \
pdflatex -interaction=nonstopmode -halt-on-error -output-directory ${BUILD_DIR}

BIBTEX := BSTINPUTS=$(CURDIR)/dependencies/ucsb: BIBINPUTS=$(CURDIR)/src: \
bibtex

JUNK := *.pdf *.aux *.log *.bbl *.blg *.toc *.out *.fdb_latexmk *.fls *.synctex.gz

all: thesis

thesis:
mkdir -p ${BUILD_DIR}/final
mkdir -p ${BUILD_DIR}/chapters
$(PDFLATEX) thesis
cd ${BUILD_DIR} && $(BIBTEX) thesis
$(PDFLATEX) thesis
$(PDFLATEX) thesis

clean:
rm -rf build
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@

```bash
sudo apt install texlive texlive-full
cd build && make
make
```
1 change: 0 additions & 1 deletion build/.gitignore

This file was deleted.

18 changes: 0 additions & 18 deletions build/Makefile

This file was deleted.

0 comments on commit bd12ae5

Please sign in to comment.