Skip to content

Commit

Permalink
[Tool] add generated png to increase build speed (#135)
Browse files Browse the repository at this point in the history
* [Tool] add generated png to increase build speed

* Makefile: remove obsolete build-docker-container target

* Makefile: do not generate .png from .tex or .dot anymore
  • Loading branch information
cagix committed Jun 29, 2023
1 parent 538761e commit fe24fd7
Show file tree
Hide file tree
Showing 42 changed files with 13 additions and 16 deletions.
29 changes: 13 additions & 16 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -110,17 +110,19 @@ SLIDES_OUTPUT_DIR = pdf
#--------------------------------------------------------------------------------

## TeX source and target files
TEX_SOURCES = $(shell find $(SRC_DIR) -type f -iname '*.tex')
TEX_INTERMEDIATE = $(patsubst $(SRC_DIR)/%,$(IMAGES_OUTPUT_DIR)/%, $(TEX_SOURCES))
TEX_TARGETS = $(patsubst $(SRC_DIR)/%.tex,$(IMAGES_OUTPUT_DIR)/%.png, $(TEX_SOURCES))
WEB_TEX_TARGETS = $(patsubst $(SRC_DIR)/%.tex,$(WEB_INTERMEDIATE_DIR)/%.png, $(TEX_SOURCES))
SLIDES_TEX_TARGETS = $(patsubst $(SRC_DIR)/%.tex,$(SLIDES_INTERMEDIATE_DIR)/%.png, $(TEX_SOURCES))
## uncomment to convert .tex to .png
#TEX_SOURCES = $(shell find $(SRC_DIR) -type f -iname '*.tex')
#TEX_INTERMEDIATE = $(patsubst $(SRC_DIR)/%,$(IMAGES_OUTPUT_DIR)/%, $(TEX_SOURCES))
#TEX_TARGETS = $(patsubst $(SRC_DIR)/%.tex,$(IMAGES_OUTPUT_DIR)/%.png, $(TEX_SOURCES))
#WEB_TEX_TARGETS = $(patsubst $(SRC_DIR)/%.tex,$(WEB_INTERMEDIATE_DIR)/%.png, $(TEX_SOURCES))
#SLIDES_TEX_TARGETS = $(patsubst $(SRC_DIR)/%.tex,$(SLIDES_INTERMEDIATE_DIR)/%.png, $(TEX_SOURCES))

## Dot source and target files
DOT_SOURCES = $(shell find $(SRC_DIR) -type f -iname '*.dot')
DOT_TARGETS = $(patsubst $(SRC_DIR)/%.dot,$(IMAGES_OUTPUT_DIR)/%.png, $(DOT_SOURCES))
WEB_DOT_TARGETS = $(patsubst $(SRC_DIR)/%.dot,$(WEB_INTERMEDIATE_DIR)/%.png, $(DOT_SOURCES))
SLIDES_DOT_TARGETS = $(patsubst $(SRC_DIR)/%.dot,$(SLIDES_INTERMEDIATE_DIR)/%.png, $(DOT_SOURCES))
## uncomment to convert .dot to .png
#DOT_SOURCES = $(shell find $(SRC_DIR) -type f -iname '*.dot')
#DOT_TARGETS = $(patsubst $(SRC_DIR)/%.dot,$(IMAGES_OUTPUT_DIR)/%.png, $(DOT_SOURCES))
#WEB_DOT_TARGETS = $(patsubst $(SRC_DIR)/%.dot,$(WEB_INTERMEDIATE_DIR)/%.png, $(DOT_SOURCES))
#SLIDES_DOT_TARGETS = $(patsubst $(SRC_DIR)/%.dot,$(SLIDES_INTERMEDIATE_DIR)/%.png, $(DOT_SOURCES))

## Standalone image sources and targets
STANDALONE_SOURCES = $(shell find $(SRC_DIR) -type f -iname '*.png')
Expand All @@ -129,8 +131,8 @@ WEB_STANDALONE_TARGETS = $(patsubst $(SRC_DIR)/%,$(WEB_INTERMEDIATE_DIR)/%,
SLIDES_STANDALONE_TARGETS = $(patsubst $(SRC_DIR)/%,$(SLIDES_INTERMEDIATE_DIR)/%, $(STANDALONE_SOURCES))

## Image targets for web and slides
WEB_IMAGE_TARGETS = $(WEB_TEX_TARGETS) $(WEB_DOT_TARGETS) $(WEB_STANDALONE_TARGETS)
SLIDES_IMAGE_TARGETS = $(SLIDES_TEX_TARGETS) $(SLIDES_DOT_TARGETS) $(SLIDES_STANDALONE_TARGETS)
WEB_IMAGE_TARGETS = $(WEB_STANDALONE_TARGETS) $(WEB_TEX_TARGETS) $(WEB_DOT_TARGETS)
SLIDES_IMAGE_TARGETS = $(SLIDES_STANDALONE_TARGETS) $(SLIDES_TEX_TARGETS) $(SLIDES_DOT_TARGETS)

## Markdown source and target files
WEB_MARKDOWN_SOURCES = $(shell find $(SRC_DIR) -type f -iname '*.md')
Expand Down Expand Up @@ -216,11 +218,6 @@ web: $(WEB_MARKDOWN_TARGETS) $(WEB_IMAGE_TARGETS) $(WEB_STATIC_TARGETS) $(READIN
web_zip: web ## Create website and archive
cd $(WEB_OUTPUT_DIR) && rm -rf site.zip && zip -r site.zip *

## Build Docker image "alpine-pandoc-hugo"
.PHONY: docker
docker: ## Build Docker image "alpine-pandoc-hugo"
cd .github/actions/alpine-pandoc-hugo && make clean all

##@ Cleanup

.PHONY: distclean
Expand Down
Binary file added markdown/backend/images/ViewCallee_Epilog.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added markdown/backend/images/ViewCallee_Prolog.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added markdown/backend/images/ViewCaller.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added markdown/frontend/lexing/images/delta.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added markdown/frontend/lexing/images/dfa.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added markdown/frontend/lexing/images/lexer.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added markdown/frontend/lexing/images/minimize_dfa.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added markdown/frontend/lexing/images/nfa2dfa.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added markdown/frontend/parsing/images/Def_First.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added markdown/frontend/parsing/images/Def_Follow.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added markdown/frontend/parsing/images/Def_LLk.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added markdown/frontend/parsing/images/Def_PDA.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added markdown/frontend/parsing/images/LALR-Automat.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added markdown/frontend/parsing/images/LALR-Table.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added markdown/frontend/parsing/images/LL-Parser.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added markdown/frontend/parsing/images/LR_0-Table.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added markdown/frontend/parsing/images/LR_1-Table.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added markdown/frontend/parsing/images/SLR_1-Table.png
Binary file added markdown/frontend/parsing/images/code.png
Binary file added markdown/frontend/parsing/images/pda.png
Binary file added markdown/frontend/parsing/images/pda2.png
Binary file added markdown/frontend/parsing/images/recovery.png
Binary file added markdown/frontend/semantics/images/ast.png
Binary file added markdown/intermediate/images/func_cfg.png
Binary file added markdown/intermediate/images/pandoc.png
Binary file added markdown/intro/images/c-toolchain.png
Binary file added markdown/intro/images/cpp-toolchain.png
Binary file added markdown/intro/images/findbugs.png

0 comments on commit fe24fd7

Please sign in to comment.