forked from dozens/protoadandsuperbowl
		
	
		
			
				
	
	
		
			24 lines
		
	
	
		
			412 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			412 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
| # list available commands and exit
 | |
| default:
 | |
|   @just --list --unsorted
 | |
| 
 | |
| # build rss feed
 | |
| rss:
 | |
|   @./bin/rss.sh
 | |
| 
 | |
| # watch toad.md for changes
 | |
| watch:
 | |
|   @ls bin/toad.md | entr -c retro bin/toad.md src/00001.txt
 | |
| alias dev := watch
 | |
| 
 | |
| # build all comics
 | |
| build:
 | |
|   #!/usr/bin/env sh
 | |
|   for f in $(ls src/*.txt); do
 | |
|     base=`basename ${f}`
 | |
|     retro bin/toad.md ${f} > "${base/txt/md}"
 | |
|   done
 | |
| 
 | |
| # build and rss
 | |
| all: build rss
 |