mirror of
				https://gitlab.freedesktop.org/wayland/wayland.git
				synced 2025-11-03 09:01:42 -05:00 
			
		
		
		
	doc: publican: Automate version generation
It seems reasonable to use protocol's version for the documentation as well. Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
This commit is contained in:
		
							parent
							
								
									2533ed1058
								
							
						
					
					
						commit
						99c55c9611
					
				
					 1 changed files with 6 additions and 1 deletions
				
			
		| 
						 | 
					@ -38,8 +38,13 @@ $(builddir)/en-US/%: $(srcdir)/en_US/% en-US/ProtocolSpec.xml en-US/ProtocolInte
 | 
				
			||||||
	$(AM_V_GEN)cp -f $< $@
 | 
						$(AM_V_GEN)cp -f $< $@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Run publican for the builddir on the generated (or copied) source
 | 
					# Run publican for the builddir on the generated (or copied) source
 | 
				
			||||||
# The output formats are generated in the Wayland sub directory
 | 
					# The output formats are generated in the Wayland sub directory. Also, we need
 | 
				
			||||||
 | 
					# to use a tmp publican.cfg cause 'publican rename' modifies the original.
 | 
				
			||||||
Wayland: $(publican_targets)
 | 
					Wayland: $(publican_targets)
 | 
				
			||||||
 | 
						$(AM_V_GEN)cp -f $(srcdir)/publican.cfg $(srcdir)/publican.cfg.tmp
 | 
				
			||||||
 | 
						$(AM_V_GEN)$(PUBLICAN) rename --name Wayland \
 | 
				
			||||||
 | 
							--version "$(WAYLAND_VERSION_MAJOR).$(WAYLAND_VERSION_MINOR)"
 | 
				
			||||||
 | 
						$(AM_V_GEN)mv -f $(srcdir)/publican.cfg.tmp $(srcdir)/publican.cfg
 | 
				
			||||||
	$(AM_V_GEN)$(PUBLICAN) build --lang en-US --format html,pdf \
 | 
						$(AM_V_GEN)$(PUBLICAN) build --lang en-US --format html,pdf \
 | 
				
			||||||
		--config $(srcdir)/publican.cfg
 | 
							--config $(srcdir)/publican.cfg
 | 
				
			||||||
	@touch Wayland
 | 
						@touch Wayland
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue