10 lines
		
	
	
		
			498 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			498 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
# make does not handle last-modified dates on folders very well, so instead we use the inner binary as the "target"
 | 
						|
why.app/Contents/MacOS/why.app: why documentTypes.plist
 | 
						|
	go tool appify -author "David Ashby" -version `git rev-parse --short HEAD` -id "in.yetaga.why" -name "why" -icon ./media/icon.png -plist ./documentTypes.plist ./why
 | 
						|
 | 
						|
documentTypes.plist: filetypes/*.go filetypes/cmd/*.go
 | 
						|
	go generate main.go
 | 
						|
 | 
						|
why: *.go filetypes/*.go media/* go.mod go.sum $(go.work go.work.sum)
 | 
						|
	go build .
 |