;make [ghcid-]watch: a handy dev feedback command
This commit is contained in:
		
							parent
							
								
									c29b0c060d
								
							
						
					
					
						commit
						9c4ef58154
					
				
							
								
								
									
										7
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										7
									
								
								Makefile
									
									
									
									
									
								
							| @ -330,6 +330,13 @@ ghcid-test-%: $(call def-help,ghcid-test-TESTPATTERN, start ghcid autobuilding a | ||||
| ghcid-doctest: $(call def-help,ghcid-doctest, start ghcid autobuilding and running hledger-lib doctests) | ||||
| 	ghcid -c 'cd hledger-lib; $(STACK) ghci hledger-lib:test:doctest' --test ':main' --reload hledger-lib | ||||
| 
 | ||||
| GHCIDRESTART=--restart Makefile --restart Makefile.local | ||||
| GHCIDRELOAD=--reload t.j --reload t.timedot | ||||
| GHCIDCMD=:main -f t.j bal date:today -S | ||||
| 
 | ||||
| ghcid-watch watch: $(call def-help,ghcid-watch, start ghcid autobuilding and running a custom GHCI command with reload/restart on certain files - customise this) | ||||
| 	ghcid -c 'make ghci' --test '$(GHCIDCMD)' $(GHCIDRELOAD) $(GHCIDRESTART) | ||||
| 
 | ||||
| # keep synced with Shake.hs header
 | ||||
| SHAKEDEPS= \
 | ||||
| 	--package base-prelude \
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user