| 
									
										
										
										
											2012-11-19 11:07:00 +00:00
										 |  |  | RST2HTML = $(shell which rst2html || which rst2html.py) | 
					
						
							| 
									
										
										
										
											2012-11-11 01:18:04 +00:00
										 |  |  | RSTCSS = $(shell python -c 'import docutils.writers.html4css1 as m; print m.Writer.default_stylesheet_path') | 
					
						
							|  |  |  | RSTOPTS = --stylesheet-path=style.css,$(RSTCSS) --initial-header-level=2 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | HTML = $(patsubst %.rst,%.html,$(wildcard *.rst)) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | .PHONY: clean | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | all : html | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | html : $(HTML) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | %.html: %.rst style.css | 
					
						
							| 
									
										
										
										
											2012-11-19 11:07:00 +00:00
										 |  |  | 	$(RST2HTML) $(RSTOPTS) $< $@ | 
					
						
							| 
									
										
										
										
											2012-11-11 01:18:04 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | clean: | 
					
						
							|  |  |  | 	rm -f $(HTML) |