28 lines
		
	
	
	
		
			618 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
	
		
			618 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
# List available actions
 | 
						|
help:
 | 
						|
    @just -l
 | 
						|
 | 
						|
# Do a debug build
 | 
						|
debug:
 | 
						|
    make -j$(nproc)
 | 
						|
 | 
						|
# Do a release build
 | 
						|
release:
 | 
						|
    make -j$(nproc) RELEASE=1
 | 
						|
 | 
						|
# Watch and recompile on changes
 | 
						|
watch:
 | 
						|
    watchexec -e c,cc,cpp,h,hpp -- make -j$(nproc)
 | 
						|
 | 
						|
# Produce a release PDF from readme
 | 
						|
readme:
 | 
						|
    @# Requires pandoc pdflatex texlive-collection-fontsrecommended
 | 
						|
    pandoc --from=gfm --to=pdf -o README.pdf README.md
 | 
						|
 | 
						|
# Produce a release PDF from readme, using podman
 | 
						|
readme-podman:
 | 
						|
    podman run --rm --volume .:/data:Z docker.io/pandoc/latex --from=gfm --to=pdf README.md -o README.pdf
 | 
						|
 | 
						|
# Clean up
 | 
						|
clean:
 | 
						|
    make clean
 |