2023-08-02 16:20:29 -05:00
|
|
|
all: resources dots tex svg tidy
|
|
|
|
|
|
|
|
RES_LIST:= PRESENTATION_Intro/
|
|
|
|
RES_DIRS:= $(addprefix ../resources/,$(RES_LIST))
|
|
|
|
.PHONY: resources
|
|
|
|
resources: $(RES_DIRS)
|
|
|
|
FORCE:
|
|
|
|
../resources/%: FORCE
|
|
|
|
@$(MAKE) -C $@
|
|
|
|
@mkdir -p res/$*
|
|
|
|
@cp --update -t res/$* $@*.dot
|
2022-11-15 05:55:22 -06:00
|
|
|
|
|
|
|
TEX_SOURCE:= $(wildcard *.tex)
|
2022-11-24 08:56:44 -06:00
|
|
|
DOT_LOC:= ../source/APPNOTE_011_Design_Investigation
|
2022-11-15 05:55:22 -06:00
|
|
|
DOT_SOURCE:= $(wildcard $(DOT_LOC)/*.dot)
|
|
|
|
|
2023-08-02 16:20:29 -05:00
|
|
|
RES_DOTS:= $(wildcard res/*/*.dot)
|
|
|
|
RES_DIRS:= $(sort $(dir $(RES_DOTS)))
|
|
|
|
RES_PDF:= $(RES_DOTS:%.dot=%.pdf)
|
|
|
|
|
2022-11-15 05:55:22 -06:00
|
|
|
TEX_SOURCE+= 011/example_out.tex
|
|
|
|
011/example_out.pdf: 011/example_00.pdf 011/example_01.pdf 011/example_02.pdf
|
|
|
|
TEX_SOURCE+= 011/select_prod.tex
|
|
|
|
011/select_prod.pdf: 011/sumprod_02.pdf 011/sumprod_03.pdf 011/sumprod_04.pdf 011/sumprod_05.pdf
|
|
|
|
TEX_SOURCE+= 011/splitnets_libfile.tex
|
|
|
|
011/splitnets_libfile.pdf: 011/cmos_00.pdf 011/cmos_01.pdf
|
|
|
|
TEX_SOURCE+= 011/submod_dots.tex
|
|
|
|
011/submod_dots.pdf: 011/submod_00.pdf 011/submod_01.pdf 011/submod_02.pdf 011/submod_03.pdf
|
|
|
|
|
|
|
|
TEX_PDF:= $(patsubst %.tex,%.pdf,$(TEX_SOURCE))
|
|
|
|
DOT_PDF:= $(addprefix 011/,$(notdir $(patsubst %.dot,%.pdf,$(DOT_SOURCE))))
|
2023-08-02 16:20:29 -05:00
|
|
|
SVG_OUTPUT:= $(patsubst %.pdf,%.svg,$(TEX_PDF) $(DOT_PDF) $(RES_PDF))
|
2022-11-15 05:55:22 -06:00
|
|
|
|
2023-08-02 16:20:29 -05:00
|
|
|
dots: $(DOT_PDF) $(RES_PDF)
|
2022-11-15 05:55:22 -06:00
|
|
|
tex: $(TEX_PDF)
|
|
|
|
svg: $(SVG_OUTPUT)
|
|
|
|
|
|
|
|
011/%.pdf: $(DOT_LOC)/%.dot
|
2022-11-16 03:11:05 -06:00
|
|
|
faketime -f '2022-01-01 00:00:00 x0,001' dot -Tpdf -o $@ $<
|
2022-11-15 05:55:22 -06:00
|
|
|
|
2023-08-02 16:20:29 -05:00
|
|
|
res/%.pdf: res/%.dot
|
|
|
|
faketime -f '2022-01-01 00:00:00 x0,001' dot -Tpdf -o $@ $<
|
|
|
|
|
2022-11-15 05:55:22 -06:00
|
|
|
011/%.pdf: 011/%.tex
|
2022-11-16 03:11:05 -06:00
|
|
|
cd 011 && faketime -f '2022-01-01 00:00:00 x0,001' pdflatex $(<F) --interaction=nonstopmode
|
2022-11-15 05:55:22 -06:00
|
|
|
|
|
|
|
%.pdf: %.tex
|
|
|
|
pdflatex $< --interaction=nonstopmode
|
|
|
|
|
|
|
|
%.svg: %.pdf
|
|
|
|
pdf2svg $< $@
|
|
|
|
|
|
|
|
.PHONY: clean tidy
|
|
|
|
tidy:
|
|
|
|
rm -f *.log
|
|
|
|
rm -f *.aux
|
|
|
|
rm -f 011/*.log 011/*.aux
|
|
|
|
clean: tidy
|
|
|
|
rm -f *.pdf
|
|
|
|
rm -f *.svg
|
|
|
|
rm -f 011/*.pdf 011/*.svg
|