18 lines
		
	
	
		
			454 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			454 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
| .POSIX:
 | |
| .SUFFIXES:
 | |
| AWK = env LC_ALL=C awk
 | |
| 
 | |
| outputs = xS xS-version.go xS-replies.go
 | |
| all: $(outputs)
 | |
| 
 | |
| xS: xS.go xS-version.go xS-replies.go
 | |
| 	go build -o $@
 | |
| xS-version.go: ../liberty/tools/cmake-parser.awk \
 | |
| 	xS-gen-version.awk ../CMakeLists.txt
 | |
| 	$(AWK) -f ../liberty/tools/cmake-parser.awk \
 | |
| 		-f xS-gen-version.awk ../CMakeLists.txt > $@
 | |
| xS-replies.go: xS-gen-replies.awk xS-replies
 | |
| 	$(AWK) -f xS-gen-replies.awk xS-replies > $@
 | |
| clean:
 | |
| 	rm -f $(outputs)
 |