tools: better auto build rule, "make auto-CMD" runs CMD on each rebuild
This commit is contained in:
		
							parent
							
								
									34390f9af6
								
							
						
					
					
						commit
						95e6dae18a
					
				
							
								
								
									
										10
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								Makefile
									
									
									
									
									
								
							| @ -160,14 +160,10 @@ allcabal%: | |||||||
| 
 | 
 | ||||||
| # auto-recompile and run (something, eg --help or unit tests) whenever a module changes
 | # auto-recompile and run (something, eg --help or unit tests) whenever a module changes
 | ||||||
| 
 | 
 | ||||||
| auto: sp | auto: auto---version | ||||||
| 	$(AUTOBUILD) $(MAIN) -o bin/hledgerdev $(AUTOBUILDFLAGS) --run --version |  | ||||||
| 
 | 
 | ||||||
| autotest: sp | auto-%: sp | ||||||
| 	$(AUTOBUILD) $(MAIN) -o bin/hledgerdev $(AUTOBUILDFLAGS) --run test | 	$(AUTOBUILD) $(MAIN) -o bin/hledgerdev $(AUTOBUILDFLAGS) --run $* | ||||||
| 
 |  | ||||||
| autotest-%: sp |  | ||||||
| 	$(AUTOBUILD) $(MAIN) -o bin/hledgerdev $(AUTOBUILDFLAGS) --run test $* |  | ||||||
| 
 | 
 | ||||||
| autoweb: sp link-web-dirs | autoweb: sp link-web-dirs | ||||||
| 	$(AUTOBUILD) hledger-web/app/main.hs -o bin/hledger-webdev $(AUTOBUILDFLAGS) $(WEBLANGEXTS) --run -B --port 5001 --base-url http://localhost:5001 -f test.journal | 	$(AUTOBUILD) hledger-web/app/main.hs -o bin/hledger-webdev $(AUTOBUILDFLAGS) $(WEBLANGEXTS) --run -B --port 5001 --base-url http://localhost:5001 -f test.journal | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user