add handout targets
This commit is contained in:
		
							
								
								
									
										4
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								Makefile
									
									
									
									
									
								
							| @@ -7,10 +7,14 @@ help: ## Print the help message | |||||||
| # Search should not include slides separated by '***', as those are for mdp, not pandoc. | # Search should not include slides separated by '***', as those are for mdp, not pandoc. | ||||||
| markdown != find slides/ -maxdepth 2 -type f -name "*.md" -exec grep -LF '***' '{}' ';' | markdown != find slides/ -maxdepth 2 -type f -name "*.md" -exec grep -LF '***' '{}' ';' | ||||||
| pdfs = $(patsubst %.md, %.pdf, $(markdown)) | pdfs = $(patsubst %.md, %.pdf, $(markdown)) | ||||||
|  | handouts = $(patsubst %.md, %_handout.pdf, $(markdown)) | ||||||
|  |  | ||||||
| $(pdfs): %.pdf: %.md | $(pdfs): %.pdf: %.md | ||||||
| 	pandoc -t beamer -V theme:Warsaw -i $< -o $@ | 	pandoc -t beamer -V theme:Warsaw -i $< -o $@ | ||||||
|  |  | ||||||
|  | $(handouts): %_handout.pdf: %.md | ||||||
|  | 	pandoc -t beamer -V handout -V theme:Warsaw -i $< -o $@ | ||||||
|  |  | ||||||
| .PHONY: pdfs | .PHONY: pdfs | ||||||
| pdfs: $(pdfs) ## Generate all pdfs (try `make -j pdfs`) | pdfs: $(pdfs) ## Generate all pdfs (try `make -j pdfs`) | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user