web: rename -fhapps flag to -fweb
This commit is contained in:
		
							parent
							
								
									a1de72bea5
								
							
						
					
					
						commit
						8a98b83286
					
				| @ -18,7 +18,7 @@ module Commands.All ( | ||||
| #ifdef VTY | ||||
|                      module Commands.UI, | ||||
| #endif | ||||
| #ifdef HAPPS | ||||
| #ifdef WEB | ||||
|                      module Commands.Web, | ||||
| #endif | ||||
|               ) | ||||
| @ -33,6 +33,6 @@ import Commands.Stats | ||||
| #ifdef VTY | ||||
| import Commands.UI | ||||
| #endif | ||||
| #ifdef HAPPS | ||||
| #ifdef WEB | ||||
| import Commands.Web | ||||
| #endif | ||||
|  | ||||
							
								
								
									
										4
									
								
								MANUAL
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								MANUAL
									
									
									
									
									
								
							| @ -46,7 +46,7 @@ hledger works on all major platforms. One of these pre-built binaries_ might wor | ||||
| If not, please report the problem, then install the `Haskell Platform`_ and type:: | ||||
| 
 | ||||
|  cabal update | ||||
|  cabal install hledger [-fvty] [-fhapps] | ||||
|  cabal install hledger [-fvty] [-fweb] | ||||
| 
 | ||||
| The optional -f flags will install more libraries and enable hledger's | ||||
| "ui" and "web" commands respectively. Note -fvty may not work on Microsoft | ||||
| @ -76,7 +76,7 @@ account name or transaction description.  Here are some commands to try | ||||
|  hledger reg desc:shop                 # transactions with shop in the description | ||||
|  hledger histogram                     # transactions per day, or other interval | ||||
|  hledger ui                            # curses ui, if installed with -fvty | ||||
|  hledger web                           # web ui, if installed with -fhapps | ||||
|  hledger web                           # web ui, if installed with -fweb | ||||
|  hledger -f new.ledger add             # record transactions from the command line | ||||
| 
 | ||||
| Reference | ||||
|  | ||||
							
								
								
									
										8
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								Makefile
									
									
									
									
									
								
							| @ -1,7 +1,7 @@ | ||||
| # hledger project makefile
 | ||||
| 
 | ||||
| # optional features described in MANUAL, comment out if you don't have the libs
 | ||||
| OPTFLAGS=-DHAPPS -DVTY | ||||
| OPTFLAGS=-DWEB -DVTY | ||||
| 
 | ||||
| # command to run during "make ci"
 | ||||
| CICMD=test | ||||
| @ -37,7 +37,7 @@ default: tag hledger | ||||
| 
 | ||||
| # build the standard cabal binary
 | ||||
| hledgercabal: | ||||
| 	cabal configure -fhapps -fvty && cabal build | ||||
| 	cabal configure -fweb -fvty && cabal build | ||||
| 
 | ||||
| # build the standard developer's binary, quickly
 | ||||
| hledger: setversion | ||||
| @ -160,14 +160,14 @@ warningstest: | ||||
| quickcabaltest: setversion | ||||
| 	@(cabal clean \
 | ||||
| 		&& cabal check \
 | ||||
| 		&& cabal configure -fvty -fhapps \
 | ||||
| 		&& cabal configure -fvty -fweb \
 | ||||
| 		&& echo $@ passed) || echo $@ FAILED | ||||
| 
 | ||||
| # make sure cabal is happy in all possible ways
 | ||||
| fullcabaltest: setversion | ||||
| 	@(cabal clean \
 | ||||
| 		&& cabal check \
 | ||||
| 		&& cabal configure -fvty -fhapps \
 | ||||
| 		&& cabal configure -fvty -fweb \
 | ||||
| 		&& cabal build \
 | ||||
| 		&& dist/build/hledger/hledger test 2>&1 | tail -1 | grep -q 'Errors: 0  Failures: 0' \
 | ||||
| 		&& cabal sdist \
 | ||||
|  | ||||
| @ -36,7 +36,7 @@ usagehdr = | ||||
| #ifdef VTY | ||||
|   "  ui        - run a simple text-based UI\n" ++ | ||||
| #endif | ||||
| #ifdef HAPPS | ||||
| #ifdef WEB | ||||
|   "  web       - run a simple web-based UI\n" ++ | ||||
| #endif | ||||
|   "  test      - run self-tests\n" ++ | ||||
|  | ||||
| @ -64,7 +64,7 @@ configflags   = tail ["" | ||||
| #ifdef VTY | ||||
|   ,"vty" | ||||
| #endif | ||||
| #ifdef HAPPS | ||||
|   ,"happs" | ||||
| #ifdef WEB | ||||
|   ,"web" | ||||
| #endif | ||||
|  ] | ||||
|  | ||||
| @ -33,7 +33,7 @@ flag vty | ||||
|   description: enable the curses ui | ||||
|   default:     False | ||||
| 
 | ||||
| flag happs | ||||
| flag web | ||||
|   description: enable the web ui | ||||
|   default:     False | ||||
| 
 | ||||
| @ -126,8 +126,8 @@ executable hledger | ||||
|     build-depends: | ||||
|                   vty >= 4.0.0.1 && < 4.1 | ||||
| 
 | ||||
|   if flag(happs) | ||||
|     cpp-options: -DHAPPS | ||||
|   if flag(web) | ||||
|     cpp-options: -DWEB | ||||
|     other-modules:Commands.Web | ||||
|     build-depends: | ||||
|                   hsp | ||||
|  | ||||
| @ -65,7 +65,7 @@ main = do | ||||
| #ifdef VTY | ||||
|        | cmd `isPrefixOf` "ui"        = withLedgerDo opts args cmd ui | ||||
| #endif | ||||
| #ifdef HAPPS | ||||
| #ifdef WEB | ||||
|        | cmd `isPrefixOf` "web"       = withLedgerDo opts args cmd web | ||||
| #endif | ||||
|        | cmd `isPrefixOf` "test"      = runtests opts args >> return () | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user