Generate schema.sql.hh
This commit is contained in:
		
							parent
							
								
									cf918b889b
								
							
						
					
					
						commit
						b1db599dd0
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -19,3 +19,8 @@ libstore_CXXFLAGS = \
 | 
			
		|||
 -DNIX_LIBEXEC_DIR=\"$(libexecdir)\" \
 | 
			
		||||
 -DNIX_BIN_DIR=\"$(bindir)\" \
 | 
			
		||||
 -DPACKAGE_VERSION=\"$(PACKAGE_VERSION)\"
 | 
			
		||||
 | 
			
		||||
$(d)/local-store.cc: $(d)/schema.sql.hh
 | 
			
		||||
 | 
			
		||||
%.sql.hh: %.sql
 | 
			
		||||
	sed -e 's/"/\\"/g' -e 's/\(.*\)/"\1\\n"/' < $< > $@ || (rm $@ && exit 1)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue