forked from bonsai/harakit
		
	Makefile: better leverage targets for sysexits build
This commit is contained in:
		
							parent
							
								
									cb88ed9809
								
							
						
					
					
						commit
						40984453e3
					
				
							
								
								
									
										9
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										9
									
								
								Makefile
									
									
									
									
									
								
							@ -76,13 +76,14 @@ build/o/libstrerror.rlib: build src/libstrerror.rs
 | 
			
		||||
	$(RUSTC) $(RUSTFLAGS) --crate-type=lib -o $@ \
 | 
			
		||||
		src/libstrerror.rs
 | 
			
		||||
 | 
			
		||||
# bandage solution until bindgen(1) gets stdin support
 | 
			
		||||
build/o/libsysexits.rlib: build $(SYSEXITS)sysexits.h
 | 
			
		||||
	printf '\043define EXIT_FAILURE 1\n' | cat - $(SYSEXITS)sysexits.h \
 | 
			
		||||
		> build/include/sysexits.h 
 | 
			
		||||
build/o/libsysexits.rlib: build/include/sysexits.h
 | 
			
		||||
	bindgen --default-macro-constant-type signed --use-core --formatter=none \
 | 
			
		||||
		build/include/sysexits.h | $(RUSTC) $(RUSTFLAGS) --crate-type lib -o $@ -
 | 
			
		||||
 | 
			
		||||
# bandage solution until bindgen(1) gets stdin support
 | 
			
		||||
build/include/sysexits.h: build $(SYSEXITS)sysexits.h
 | 
			
		||||
	printf '\043define EXIT_FAILURE 1\n' | cat - $(SYSEXITS)sysexits.h > $@
 | 
			
		||||
 | 
			
		||||
.PHONY: dj
 | 
			
		||||
dj: build/bin/dj
 | 
			
		||||
build/bin/dj: src/dj.c build
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user