overview tool and make rules for profiling, haddock, etc
This commit is contained in:
		
							parent
							
								
									3de3e861ee
								
							
						
					
					
						commit
						328d198559
					
				
							
								
								
									
										21
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										21
									
								
								Makefile
									
									
									
									
									
								
							| @ -1,6 +1,27 @@ | |||||||
| build: Tags | build: Tags | ||||||
| 	ghc --make hledger.hs | 	ghc --make hledger.hs | ||||||
| 
 | 
 | ||||||
|  | profile: | ||||||
|  | 	ghc --make -prof -auto-all hledger.hs | ||||||
|  | 	hledger -s bal +RTS -p | ||||||
|  | 	T=`date +"%Y%m%d%H%M"` | ||||||
|  | 	echo $(T) | ||||||
|  | 	mv hledger.prof `date +"%Y%m%d%H%M"`.prof | ||||||
|  | 	hledger -s bal +RTS -px | ||||||
|  | 	mv hledger.prof `date +"%Y%m%d%H%M"`.xprof | ||||||
|  | 	echo $(T) | ||||||
|  | 	make xprof | ||||||
|  | 
 | ||||||
|  | xprof: | ||||||
|  | 	ghcprof `ls -t1 *.xprof | head -1` | ||||||
|  | 
 | ||||||
|  | haddock: | ||||||
|  | 	haddock -h -o doc *.hs | ||||||
|  | 
 | ||||||
|  | update-overview: | ||||||
|  | 	runhaskell ./overview.hs >.ov; mv .ov OVERVIEW | ||||||
|  | #	./overview >.ov; mv .ov OVERVIEW
 | ||||||
|  | 
 | ||||||
| Tags: | Tags: | ||||||
| 	hasktags *hs | 	hasktags *hs | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user