Skip to content

Commit

Permalink
Add preview pseudotarget to Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Witiko committed Nov 9, 2023
1 parent cee6e0f commit 0f5662a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.PHONY: all base clean implode dist test force \
docker-image docker-push-temporary-tag docker-print-temporary-tag \
docker-push-release-tag
docker-push-release-tag preview

SHELL=/bin/bash

Expand Down Expand Up @@ -140,6 +140,10 @@ $(TECHNICAL_DOCUMENTATION): $(DTXARCHIVE) $(TECHNICAL_DOCUMENTATION_RESOURCES)
latexmk -silent $< || (cat $(basename $@).log 1>&2; exit 1)
test `tail $(basename $<).log | sed -rn 's/.*\(([0-9]*) pages.*/\1/p'` -gt 350

# This pseudotarget continuously typesets the manual.
preview: $(DTXARCHIVE) $(TECHNICAL_DOCUMENTATION_RESOURCES)
latexmk -silent -pvc $<

# These targets typeset the examples.
$(EXAMPLES): $(EXAMPLE_SOURCES) examples/example.tex
if [[ '$(NO_DOCUMENTATION)' != true ]]; \
Expand Down

0 comments on commit 0f5662a

Please sign in to comment.