Skip to content

Conversation

@jmtd
Copy link
Contributor

@jmtd jmtd commented Mar 8, 2024

Specify -output-directory to latexmk, which fixes placing the
standalone chapter PDFs in the chapter sub-directories instead of the
root.

latexmk also correctly propagates this option to pdflatex, meaning we
don't need to redefine it.

latexmk also defaults auxdir to output-directory, so we don't need to
specify that.


The phony clean and purge rules were incorrectly specified in terms
of the source files, not the destinations (e.g. expanding to
"clean/chapter1-standalone.tex").

Avoid defining two variables STANDALONE and standalone; use
STANDALONE_SOURCES for the former and STANDALONE for the latter.

Define phone 'clean-standalone' and 'purge-standalone' rules; group
them with the phony 'standalone' rule. Depend upon these later
instead of doing addprefix calculations in the dependency list for
clean/purge.

declare all three .PHONY within this section of the Makefile so all
the standalone stuff is together; remove the subsequent declaration
in the bottom-most .PHONY.

jmtd added 2 commits March 8, 2024 15:56
Specify -output-directory to *latexmk*, which fixes placing the
standalone chapter PDFs in the chapter sub-directories instead of the
root.

latexmk also correctly propagates this option to pdflatex, meaning we
don't need to redefine it.

latexmk also defaults auxdir to output-directory, so we don't need to
specify that.

Signed-off-by: Jonathan Dowland <[email protected]>
The phony clean and purge rules were incorrectly specified in terms
of the source files, not the destinations (e.g. expanding to
"clean/chapter1-standalone.tex").

Avoid defining two variables STANDALONE and standalone; use
STANDALONE_SOURCES for the former and STANDALONE for the latter.

Define phone 'clean-standalone' and 'purge-standalone' rules; group
them with the phony 'standalone' rule. Depend upon these later
instead of  doing addprefix calculations in the dependency list for
clean/purge.

declare all three .PHONY within this section of the Makefile so all
the standalone stuff is together; remove the subsequent declaration
in the bottom-most .PHONY.

Signed-off-by: Jonathan Dowland <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant