make tweaks
This commit is contained in:
		
							parent
							
								
									d760acc85e
								
							
						
					
					
						commit
						3c6b5b039b
					
				
							
								
								
									
										9
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										9
									
								
								Makefile
									
									
									
									
									
								
							| @ -1,4 +1,4 @@ | ||||
| BUILD=ghc --make hledger.hs -o hledger -prof -auto-all # -O2 | ||||
| BUILD=ghc --make hledger.hs -o hledger -prof -auto-all #-O2 | ||||
| TOPROFILE=hledger -s balance | ||||
| TIME=`date +"%Y%m%d%H%M"` | ||||
| 
 | ||||
| @ -10,10 +10,11 @@ profile: | ||||
| 	$(BUILD) -prof -auto-all | ||||
| 	$(TOPROFILE) +RTS -p | ||||
| 	mv hledger.prof $(TIME).prof | ||||
| 	cat $(TIME).prof | ||||
| 	rm -f last.prof | ||||
| 	ln -s $(TIME).prof last.prof | ||||
| 	./simplifyprof.hs <last.prof | ||||
| 	head -20 $(TIME).prof >simple.prof | ||||
| 	cat simple.prof | ||||
| 	./simplifyprof.hs <last.prof >>simple.prof | ||||
| 
 | ||||
| xprofile: | ||||
| 	$(BUILD) -prof -auto-all | ||||
| @ -25,7 +26,7 @@ haddock: | ||||
| 	haddock -h -o doc *.hs | ||||
| 
 | ||||
| overview: | ||||
| 	@./overview.hs Types.hs | ||||
| 	@./overview.hs Types.hs | tee OVERVIEW | ||||
| 
 | ||||
| loc: | ||||
| 	@darcs trackdown 'find . -name "*hs" |xargs wc -l |echo OUTPUT `tail -1`; false' |ruby -nae'puts $$F[1] if /^OUTPUT/' | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user