From cc819a19ef9fb25de7671282e3b44ad447ea0ec3 Mon Sep 17 00:00:00 2001 From: James Patrick Date: Sun, 8 Mar 2020 21:47:29 -0400 Subject: [PATCH] Added jrnl config. 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. --- jrnl/makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 jrnl/makefile diff --git a/jrnl/makefile b/jrnl/makefile new file mode 100644 index 0000000..b107ad2 --- /dev/null +++ b/jrnl/makefile @@ -0,0 +1,20 @@ +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)