prepare manpage generation in makefile
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
		
					parent
					
						
							
								96fbffeaa1
							
						
					
				
			
			
				commit
				
					
						f8c5c03e77
					
				
			
		
					 5 changed files with 20 additions and 11 deletions
				
			
		
							
								
								
									
										1
									
								
								.gitignore
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.gitignore
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -1,2 +1,3 @@
 | 
			
		|||
.*.swp
 | 
			
		||||
doc/man/*.[1-9]
 | 
			
		||||
doc/man/.marker
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										30
									
								
								Makefile
									
										
									
									
									
								
							
							
						
						
									
										30
									
								
								Makefile
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -1,15 +1,22 @@
 | 
			
		|||
# General
 | 
			
		||||
PREFIX=/usr
 | 
			
		||||
BINDIR=$(PREFIX}/bin
 | 
			
		||||
A2X=a2x -f manpage --no-xmllint
 | 
			
		||||
 | 
			
		||||
# Developer only
 | 
			
		||||
WEBDIR=$$HOME/niconetz
 | 
			
		||||
WEBPAGE=software/cdist.mdwn
 | 
			
		||||
 | 
			
		||||
MANSRC=doc/man/cdist-config-layout.text doc/man/cdist-config.text \
 | 
			
		||||
   doc/man/cdist-deploy-to.text doc/man/cdist-design.text			\
 | 
			
		||||
   doc/man/cdist-environment.text doc/man/cdist-explorers.text 	\
 | 
			
		||||
	doc/man/cdist-language.text doc/man/cdist-manifests.text 		\
 | 
			
		||||
	doc/man/cdist-quickstart.text doc/man/cdist-stages.text 			\
 | 
			
		||||
	doc/man/cdist-terms.text doc/man/cdist.text 							\
 | 
			
		||||
	doc/man/cdist-types.text
 | 
			
		||||
MANSRC=doc/man/cdist-config-layout.text \
 | 
			
		||||
	doc/man/cdist-config.text 		\
 | 
			
		||||
   doc/man/cdist-deploy-to.text 	\
 | 
			
		||||
	doc/man/cdist-explorer.text	\
 | 
			
		||||
	doc/man/cdist-manifest.text 	\
 | 
			
		||||
	doc/man/cdist-quickstart.text \
 | 
			
		||||
	doc/man/cdist-stages.text		\
 | 
			
		||||
	doc/man/cdist-terms.text 		\
 | 
			
		||||
	doc/man/cdist.text 				\
 | 
			
		||||
	doc/man/cdist-type.text
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# FIXME: some distro nerd, can you make this more beautiful?
 | 
			
		||||
| 
						 | 
				
			
			@ -33,10 +40,11 @@ web:
 | 
			
		|||
pub:
 | 
			
		||||
	git push --mirror
 | 
			
		||||
 | 
			
		||||
man:
 | 
			
		||||
	echo $(MANSRC)
 | 
			
		||||
	a2x -f manpage --no-xmllint doc/man/cdist-stages.text
 | 
			
		||||
	echo man ./doc/man/cdist-stages.7
 | 
			
		||||
man: doc/man/.marker
 | 
			
		||||
 | 
			
		||||
doc/man/.marker: $(MANSRC)
 | 
			
		||||
	for man in $(MANSRC); do $(A2X) $$man; done
 | 
			
		||||
	touch $@
 | 
			
		||||
 | 
			
		||||
clean:
 | 
			
		||||
	rm -f doc/man/*.html doc/man/*.[1-9]
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue