Makefile: move PHONYs to their respective recipes
This commit is contained in:
		
							parent
							
								
									48c6ad1252
								
							
						
					
					
						commit
						c237af0e37
					
				
							
								
								
									
										9
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										9
									
								
								Makefile
									
									
									
									
									
								
							| @ -10,11 +10,6 @@ | |||||||
| .POSIX: | .POSIX: | ||||||
| .PRAGMA: posix_202x # future POSIX standard support à la pdpmake(1)
 | .PRAGMA: posix_202x # future POSIX standard support à la pdpmake(1)
 | ||||||
| 
 | 
 | ||||||
| .PHONY: all |  | ||||||
| .PHONY: clean |  | ||||||
| .PHONY: install |  | ||||||
| .PHONY: test |  | ||||||
| 
 |  | ||||||
| PREFIX=/usr/local | PREFIX=/usr/local | ||||||
| 
 | 
 | ||||||
| CC=cc | CC=cc | ||||||
| @ -23,6 +18,7 @@ RUSTC=rustc | |||||||
| # to build, first run ./configure
 | # to build, first run ./configure
 | ||||||
| include *.mk | include *.mk | ||||||
| 
 | 
 | ||||||
|  | .PHONY: all | ||||||
| all: dj false fop intcmp scrut str strcmp true | all: dj false fop intcmp scrut str strcmp true | ||||||
| 
 | 
 | ||||||
| build: | build: | ||||||
| @ -30,6 +26,7 @@ build: | |||||||
| 	# https://github.com/rust-lang/rust-bindgen/issues/2703 | 	# https://github.com/rust-lang/rust-bindgen/issues/2703 | ||||||
| 	mkdir -p build/bin build/include build/lib build/o build/test | 	mkdir -p build/bin build/include build/lib build/o build/test | ||||||
| 
 | 
 | ||||||
|  | .PHONY: clean | ||||||
| clean: | clean: | ||||||
| 	rm -rf build/ dist/ | 	rm -rf build/ dist/ | ||||||
| 
 | 
 | ||||||
| @ -38,10 +35,12 @@ dist: all | |||||||
| 	cp build/bin/* dist/bin/ | 	cp build/bin/* dist/bin/ | ||||||
| 	cp docs/*.1 dist/share/man/man1/ | 	cp docs/*.1 dist/share/man/man1/ | ||||||
| 
 | 
 | ||||||
|  | .PHONY: install | ||||||
| install: dist | install: dist | ||||||
| 	mkdir -p $(PREFIX) | 	mkdir -p $(PREFIX) | ||||||
| 	cp -r dist/* $(PREFIX)/ | 	cp -r dist/* $(PREFIX)/ | ||||||
| 
 | 
 | ||||||
|  | .PHONY: test | ||||||
| test: build | test: build | ||||||
| 	tests/cc-compat.sh | 	tests/cc-compat.sh | ||||||
| 	tests/posix-compat.sh | 	tests/posix-compat.sh | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user