mirror of https://github.com/fafhrd91/actix-web
				
				
				
			
		
			
				
	
	
		
			27 lines
		
	
	
		
			534 B
		
	
	
	
		
			Makefile
		
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			534 B
		
	
	
	
		
			Makefile
		
	
	
	
| .PHONY: default build test doc book clean
 | |
| 
 | |
| CARGO_FLAGS := --features "$(FEATURES) alpn"
 | |
| 
 | |
| default: test
 | |
| 
 | |
| build:
 | |
| 	cargo build $(CARGO_FLAGS)
 | |
| 
 | |
| test: build clippy
 | |
| 	cargo test $(CARGO_FLAGS)
 | |
| 
 | |
| skeptic:
 | |
| 	USE_SKEPTIC=1 cargo test $(CARGO_FLAGS)
 | |
| 
 | |
| # cd examples/word-count && python setup.py install && pytest -v tests
 | |
| 
 | |
| clippy:
 | |
| 	if $$CLIPPY; then cargo clippy $(CARGO_FLAGS); fi
 | |
| 
 | |
| doc: build
 | |
| 	cargo doc --no-deps $(CARGO_FLAGS)
 | |
| 	cd guide; mdbook build -d ../target/doc/guide/; cd ..
 | |
| 
 | |
| book:
 | |
| 	cd guide; mdbook build -d ../target/doc/guide/; cd ..
 |