28 lines
		
	
	
	
		
			633 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
	
		
			633 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
# vim: set ft=make :
 | 
						|
root := `pwd`
 | 
						|
 | 
						|
setup-ubuntu:
 | 
						|
    sudo apt install fuse3 pandoc
 | 
						|
 | 
						|
# Build static website
 | 
						|
build:
 | 
						|
    tup build
 | 
						|
 | 
						|
clean:
 | 
						|
    git clean -dxf build
 | 
						|
 | 
						|
# Generate dependency graph as PNG file
 | 
						|
graph:
 | 
						|
    tup graph . | dot -Tpng > graph.png
 | 
						|
 | 
						|
upload-resume:
 | 
						|
	scp ~/Hub/Personal/Jobs/resume_2020-09.pdf fabs@ffreling.com:ffreling.com/files/resume.pdf
 | 
						|
 | 
						|
# Deploy up-to-date website to webserver
 | 
						|
deploy: build
 | 
						|
    rsync --checksum --copy-links -ave 'ssh' \
 | 
						|
        --exclude-from=rsync_excludes.txt \
 | 
						|
        build/* fabs@ffreling.com:ffreling.com/
 | 
						|
 | 
						|
preview: build
 | 
						|
    python3 -m webbrowser -t "file://{{root}}/build/index.html"
 |