Makefile
This commit is contained in:
		
							parent
							
								
									77acf8069e
								
							
						
					
					
						commit
						ef6adf71e7
					
				
					 1 changed files with 7 additions and 0 deletions
				
			
		
							
								
								
									
										7
									
								
								Makefile
									
										
									
									
									
								
							
							
						
						
									
										7
									
								
								Makefile
									
										
									
									
									
								
							|  | @ -5,6 +5,12 @@ SQL_SCRIPT := database.sql | ||||||
| # Define targets and their dependencies
 | # Define targets and their dependencies
 | ||||||
| all: init_db | all: init_db | ||||||
| 
 | 
 | ||||||
|  | run: | ||||||
|  | 	./mvnw compile exec:java -Dexec.mainClass="launch.Main" | ||||||
|  | 
 | ||||||
|  | watch: | ||||||
|  | 	watchexec -c -r -w src make run | ||||||
|  | 
 | ||||||
| init_db: $(DB_NAME) | init_db: $(DB_NAME) | ||||||
| 
 | 
 | ||||||
| # Target to create the database
 | # Target to create the database
 | ||||||
|  | @ -18,6 +24,7 @@ clean: | ||||||
| dumptables: | dumptables: | ||||||
| 	sqlite3 $(DB_NAME) "SELECT * FROM Respondents;" | 	sqlite3 $(DB_NAME) "SELECT * FROM Respondents;" | ||||||
| 	sqlite3 $(DB_NAME) "SELECT * FROM Answers;" | 	sqlite3 $(DB_NAME) "SELECT * FROM Answers;" | ||||||
|  | 	sqlite3 $(DB_NAME) "SELECT * FROM ProjectDetails;" | ||||||
| 
 | 
 | ||||||
| # Phony targets
 | # Phony targets
 | ||||||
| .PHONY: all init_db clean | .PHONY: all init_db clean | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Imbus
						Imbus