This may be removed in favor of my emacs journal. But its currently to early to say. I'm committed because I have the record.
		
			
				
	
	
		
			21 lines
		
	
	
		
			381 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			381 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
SRC := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
 | 
						|
 | 
						|
include ../lib/shared.mk
 | 
						|
 | 
						|
CONFIG_DIR :=  $(XDG_DIR)/jrnl
 | 
						|
 | 
						|
install: | init update
 | 
						|
 | 
						|
init:
 | 
						|
ifeq ($(call cmd_exist,jrnl), true)
 | 
						|
	$(info => Setting up jrnl)
 | 
						|
	mkdir $(CONFIG_DIR)
 | 
						|
	$(mk_link) $(SRC)/jrnl.yml $(CONFIG_DIR)/jrnl.yml
 | 
						|
 | 
						|
else
 | 
						|
	$(report) info "jrnl not installed. Skipping."
 | 
						|
endif
 | 
						|
 | 
						|
remove:
 | 
						|
	rm -rf $(CONFIG_DIR)
 |