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: sp | ||||
| 	$(AUTOBUILD) $(MAIN) -o bin/hledgerdev $(AUTOBUILDFLAGS) --run --version | ||||
| auto: auto---version | ||||
| 
 | ||||
| autotest: sp | ||||
| 	$(AUTOBUILD) $(MAIN) -o bin/hledgerdev $(AUTOBUILDFLAGS) --run test | ||||
| 
 | ||||
| autotest-%: sp | ||||
| 	$(AUTOBUILD) $(MAIN) -o bin/hledgerdev $(AUTOBUILDFLAGS) --run test $* | ||||
| auto-%: sp | ||||
| 	$(AUTOBUILD) $(MAIN) -o bin/hledgerdev $(AUTOBUILDFLAGS) --run $* | ||||
| 
 | ||||
| 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 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user