24 lines
		
	
	
		
			412 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			412 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
# show all commands
 | 
						|
default:
 | 
						|
  just --list --unsorted
 | 
						|
 | 
						|
# build html
 | 
						|
html:
 | 
						|
  pandoc -t html story.md -o index.html
 | 
						|
 | 
						|
# watch for updates and build html
 | 
						|
watch:
 | 
						|
  ls story.md | entr -c just html
 | 
						|
 | 
						|
# m4 demonstration
 | 
						|
m4:
 | 
						|
  echo "hello this is patrick" | m4 -D "patrick=krusty krab"
 | 
						|
 | 
						|
# roll some dice
 | 
						|
roll:
 | 
						|
  recsel -P result -m 1 db.rec
 | 
						|
 | 
						|
# show all bad results
 | 
						|
bad:
 | 
						|
  recsel -e "id <= 6" -G result -p id,result db.rec
 |