mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
	
		
			454 B
		
	
	
	
		
			Meson
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
	
		
			454 B
		
	
	
	
		
			Meson
		
	
	
	
	
	
pandoc = find_program('pandoc', required: false)
 | 
						|
 | 
						|
sections = ['.1', '-config.5', '-theme.5', '-actions.5']
 | 
						|
 | 
						|
if pandoc.found()
 | 
						|
  foreach s : sections
 | 
						|
    markdown = files('labwc' + s + '.md')
 | 
						|
    manpage = 'labwc' + s
 | 
						|
    custom_target(
 | 
						|
      manpage,
 | 
						|
      command: [pandoc,'-s','-t','man',markdown],
 | 
						|
      output: manpage,
 | 
						|
      capture: true,
 | 
						|
      install: true,
 | 
						|
      install_dir: join_paths(get_option('mandir'), 'man' + s)
 | 
						|
    )
 | 
						|
  endforeach
 | 
						|
endif
 |