make: add all, docs, check, lint targets
This commit is contained in:
		
					parent
					
						
							
								ff6f1554e2
							
						
					
				
			
			
				commit
				
					
						0ddf2ba61f
					
				
			
		
					 1 changed files with 25 additions and 0 deletions
				
			
		
							
								
								
									
										25
									
								
								Makefile
									
										
									
									
									
								
							
							
						
						
									
										25
									
								
								Makefile
									
										
									
									
									
								
							|  | @ -1,5 +1,30 @@ | ||||||
| .POSIX: | .POSIX: | ||||||
| 
 | 
 | ||||||
|  | all: jotdown docs | ||||||
|  | 	cargo build --workspace | ||||||
|  | 
 | ||||||
|  | jotdown: target/release/jotdown | ||||||
|  | 	cp $< $@ | ||||||
|  | 
 | ||||||
|  | target/release/jotdown: | ||||||
|  | 	cargo build --release | ||||||
|  | 
 | ||||||
|  | .PHONY: | ||||||
|  | docs: | ||||||
|  | 	cargo doc --no-deps --workspace | ||||||
|  | 
 | ||||||
|  | .PHONY: lint | ||||||
|  | lint: | ||||||
|  | 	cargo fmt --all -- --check | ||||||
|  | 	cargo clippy -- -D warnings | ||||||
|  | 	cargo clippy --no-default-features -- -D warnings | ||||||
|  | 	cargo clippy --all-features -- -D warnings | ||||||
|  | 
 | ||||||
|  | .PHONY: check | ||||||
|  | check: | ||||||
|  | 	cargo test --workspace | ||||||
|  | 	cargo test --workspace --no-default-features | ||||||
|  | 
 | ||||||
| .PHONY: suite | .PHONY: suite | ||||||
| suite: | suite: | ||||||
| 	git submodule update --init modules/djot.js | 	git submodule update --init modules/djot.js | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue