26 lines
		
	
	
		
			601 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			601 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
# list available recipes
 | 
						|
default:
 | 
						|
  just --list --unsorted
 | 
						|
 | 
						|
build:
 | 
						|
  fennel --compile-binary main.fnl dist/nmm \
 | 
						|
  /usr/local/lib/liblua.a \
 | 
						|
  /usr/local/include/lua5.4
 | 
						|
 | 
						|
# run tests
 | 
						|
test:
 | 
						|
  #!/bin/zsh
 | 
						|
  for f in lib/**/*.test.fnl; do fennel $f | faucet; done
 | 
						|
 | 
						|
# build expect scripts
 | 
						|
expects:
 | 
						|
  for f in test/*.dat; do awk -f test/test.awk $f > ${f/dat/expect}; done
 | 
						|
 | 
						|
# make the project
 | 
						|
project:
 | 
						|
  awk '$0 ~ /^---$/ && times++ < 2 { a=!a;next; } a' doc/tilde30.t \
 | 
						|
  | recfmt -f doc/tilde30.t \
 | 
						|
  | awk '$0 ~ /^---$/ { times++;next } times > 1' \
 | 
						|
  | nroff -ms -Tascii \
 | 
						|
  | ssh tilde 'cat > .project'
 |