mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 03:32:29 +00:00 
			
		
		
		
	docs: update images makefile
Correct path to 011 source. Also path for resources target. Set timezone to 'Z' for faketime. Not sure how to avoid needing to `make resources` before `make all` (or running `make all` twice) in order to properly generate the presentation images.
This commit is contained in:
		
							parent
							
								
									8e07030fee
								
							
						
					
					
						commit
						2b10bd5070
					
				
					 1 changed files with 6 additions and 5 deletions
				
			
		|  | @ -5,13 +5,13 @@ RES_DIRS:= $(addprefix ../../resources/,$(RES_LIST)) | ||||||
| .PHONY: resources | .PHONY: resources | ||||||
| resources: $(RES_DIRS) | resources: $(RES_DIRS) | ||||||
| FORCE: | FORCE: | ||||||
| ../resources/%: FORCE | ../../resources/%: FORCE | ||||||
| 	@$(MAKE) -C $@ | 	@$(MAKE) -C $@ | ||||||
| 	@mkdir -p res/$* | 	@mkdir -p res/$* | ||||||
| 	@cp --update -t res/$* $@*.dot | 	@cp --update -t res/$* $@*.dot | ||||||
| 
 | 
 | ||||||
| TEX_SOURCE:= $(wildcard *.tex) | TEX_SOURCE:= $(wildcard *.tex) | ||||||
| DOT_LOC:= ../source/APPNOTE_011_Design_Investigation | DOT_LOC:= ../APPNOTE_011_Design_Investigation | ||||||
| DOT_SOURCE:= $(wildcard $(DOT_LOC)/*.dot) | DOT_SOURCE:= $(wildcard $(DOT_LOC)/*.dot) | ||||||
| 
 | 
 | ||||||
| RES_DOTS:= $(wildcard res/*/*.dot) | RES_DOTS:= $(wildcard res/*/*.dot) | ||||||
|  | @ -36,13 +36,13 @@ tex: $(TEX_PDF) | ||||||
| svg: $(SVG_OUTPUT) | svg: $(SVG_OUTPUT) | ||||||
| 
 | 
 | ||||||
| 011/%.pdf: $(DOT_LOC)/%.dot | 011/%.pdf: $(DOT_LOC)/%.dot | ||||||
| 	faketime -f '2022-01-01 00:00:00 x0,001' dot -Tpdf -o $@ $< | 	TZ='Z' faketime -f '2022-01-01 00:00:00 x0,001' dot -Tpdf -o $@ $< | ||||||
| 
 | 
 | ||||||
| res/%.pdf: res/%.dot | res/%.pdf: res/%.dot | ||||||
| 	faketime -f '2022-01-01 00:00:00 x0,001' dot -Tpdf -o $@ $< | 	TZ='Z' faketime -f '2022-01-01 00:00:00 x0,001' dot -Tpdf -o $@ $< | ||||||
| 
 | 
 | ||||||
| 011/%.pdf: 011/%.tex | 011/%.pdf: 011/%.tex | ||||||
| 	cd 011 && faketime -f '2022-01-01 00:00:00 x0,001' pdflatex $(<F) --interaction=nonstopmode | 	cd 011 && TZ='Z' faketime -f '2022-01-01 00:00:00 x0,001' pdflatex $(<F) --interaction=nonstopmode | ||||||
| 
 | 
 | ||||||
| %.pdf: %.tex | %.pdf: %.tex | ||||||
| 	pdflatex $< --interaction=nonstopmode | 	pdflatex $< --interaction=nonstopmode | ||||||
|  | @ -59,3 +59,4 @@ clean: tidy | ||||||
| 	rm -f *.pdf | 	rm -f *.pdf | ||||||
| 	rm -f *.svg | 	rm -f *.svg | ||||||
| 	rm -f 011/*.pdf 011/*.svg | 	rm -f 011/*.pdf 011/*.svg | ||||||
|  | 	rm -rf $(RES_DIRS) | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue