summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Holman <dholman@gymli.org>2025-03-27 23:35:40 -0500
committerDanny Holman <dholman@gymli.org>2025-03-27 23:35:40 -0500
commitd5d4bac2c8a61585c31a02340bafe9e8a33bfe50 (patch)
treed997f3d8f78f574698909a98c84fa13066f81f37
parentAdd titles (diff)
downloadunix-book-master.tar.gz
unix-book-master.tar.zst
unix-book-master.zip
Remove figures from required file listHEADmaster
Remove the references to figures in the makefiles. The backlinks will take care of resolving them by themselves.
-rw-r--r--volume1/Makefile3
-rw-r--r--volume2/Makefile5
2 files changed, 3 insertions, 5 deletions
diff --git a/volume1/Makefile b/volume1/Makefile
index c0d0d3d..fe562a8 100644
--- a/volume1/Makefile
+++ b/volume1/Makefile
@@ -5,7 +5,6 @@ FMLATEX:=$(FRONTMATTER:.md=.tex)
BMLATEX:=$(BACKMATTER:.md=.tex)
CHAPTERS:=$(wildcard src/chapters/*.md)
APPENDICES:=$(wildcard src/appendices/*.md)
-FIGURES:=$(wildcard src/figs/*.svg)
PFLAGS:=--pdf-engine=xelatex \
--from=markdown \
--indented-code-classes=javascript \
@@ -20,7 +19,7 @@ PFLAGS:=--pdf-engine=xelatex \
all: $(BOOK)
-$(BOOK): $(CHAPTERS) $(FMLATEX) $(BMLATEX) $(APPENDICES) src/title.txt $(FIGURES)
+$(BOOK): $(CHAPTERS) $(FMLATEX) $(BMLATEX) $(APPENDICES) src/title.txt
pandoc src/title.txt $(CHAPTERS) $(APPENDICES) -o $@ $(PFLAGS) --toc=true -N -B $(FMLATEX)
$(FMLATEX): $(FRONTMATTER)
diff --git a/volume2/Makefile b/volume2/Makefile
index 4809d16..1c817ba 100644
--- a/volume2/Makefile
+++ b/volume2/Makefile
@@ -5,7 +5,6 @@ FMLATEX:=$(FRONTMATTER:.md=.tex)
BMLATEX:=$(BACKMATTER:.md=.tex)
CHAPTERS:=$(wildcard src/chapters/*.md)
APPENDICES:=$(wildcard src/appendices/*.md)
-FIGURES:=$(wildcard src/figs/*.svg)
PFLAGS:=--pdf-engine=xelatex \
--from=markdown \
--indented-code-classes=javascript \
@@ -21,8 +20,8 @@ PFLAGS:=--pdf-engine=xelatex \
all: $(BOOK)
-$(BOOK): $(CHAPTERS) $(FMLATEX) $(BMLATEX) $(APPENDICES) src/title.txt $(FIGURES)
- pandoc src/title.txt $(CHAPTERS) $(APPENDICES) $(FIGURES) -o $@ $(PFLAGS) -N -B $(FMLATEX)
+$(BOOK): $(CHAPTERS) $(FMLATEX) $(BMLATEX) $(APPENDICES) src/title.txt
+ pandoc src/title.txt $(CHAPTERS) $(APPENDICES) -o $@ $(PFLAGS) -N -B $(FMLATEX)
$(FMLATEX): $(FRONTMATTER)
pandoc $^ -o $@ $(PFLAGS)