22 lines
		
	
	
		
			464 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			464 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
# -*- mode: makefile-gmake; -*-
 | 
						|
SRC := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
 | 
						|
 | 
						|
requires := kitty
 | 
						|
include ../lib/shared.mk
 | 
						|
 | 
						|
CONFIG_DIR :=  $(XDG_DIR)/kitty
 | 
						|
 | 
						|
install: | init update
 | 
						|
 | 
						|
up:
 | 
						|
	if (( $$+commands[kitty] )) ; then
 | 
						|
		$(report) header "Setting up kitty"
 | 
						|
		$(mk_link) $(SRC) $(CONFIG_DIR)
 | 
						|
	else
 | 
						|
		$(report) debug "kitty not installed. Skipping."
 | 
						|
	fi
 | 
						|
 | 
						|
down:
 | 
						|
	$(report) header "removing up kitty"
 | 
						|
	rm -r $(CONFIG_DIR) ; $(report) "removed dir"
 |