tools: more binary-building cleanup
This commit is contained in:
		
							parent
							
								
									2d17552a21
								
							
						
					
					
						commit
						9998d51aec
					
				
							
								
								
									
										18
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										18
									
								
								Makefile
									
									
									
									
									
								
							| @ -102,21 +102,21 @@ hledgercov: setversion | ||||
| hledgeropt: setversion | ||||
| 	ghc --make hledger.hs -o bin/hledgeropt $(BUILDFLAGS) -O2 # -fvia-C # -fexcess-precision -optc-O3 -optc-ffast-math | ||||
| 
 | ||||
| # build a deployable binary for mac, one which uses only standard osx libs
 | ||||
| hledgermac: setversion | ||||
| 	ghc --make hledger.hs -o bin/$(BINARYFILENAME) $(BUILDFLAGS) -O2 # -optl-L/usr/lib | ||||
| 	@echo Please check the build looks portable: | ||||
| 	otool -L bin/$(BINARYFILENAME) | ||||
| 
 | ||||
| # build a deployable binary for gnu/linux, statically linked
 | ||||
| hledgerlinux: setversion | ||||
| 	ghc --make hledger.hs -o bin/$(BINARYFILENAME) $(BUILDFLAGS) -O2 -static -optl-static -optl-pthread | ||||
| 	@echo Please check the build looks portable (static): | ||||
| 	-file bin/$(BINARYFILENAME) | ||||
| 
 | ||||
| # build a deployable binary for windows, using cygwin presumably
 | ||||
| # hledgerwin: setversion
 | ||||
| # 	ghc --make hledger.hs -o bin/hledgerlinux $(BUILDFLAGS) -O2 -static -optl-static -optl-pthread
 | ||||
| # build a deployable binary for mac, using only standard osx libs
 | ||||
| hledgermac: setversion | ||||
| 	ghc --make hledger.hs -o bin/$(BINARYFILENAME) $(BUILDFLAGS) -O2 # -optl-L/usr/lib | ||||
| 	@echo Please check the build looks portable: | ||||
| 	otool -L bin/$(BINARYFILENAME) | ||||
| 
 | ||||
| # build a deployable binary for windows, running make via cygwin presumably
 | ||||
| hledgerwin: setversion hledgercabal | ||||
| 	cp ~/.cabal/bin/hledger.exe bin/$(BINARYFILENAME) | ||||
| 
 | ||||
| # auto-recompile and run (with the specified argument) whenever a module changes.
 | ||||
| # sp is from searchpath.org, you might need the patched version from
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user