summaryrefslogtreecommitdiffstats
path: root/src/Makefile
diff options
context:
space:
mode:
authorSosthène Guédon <sosthene.gued@gmail.com>2019-06-15 23:39:47 +0200
committerSosthène Guédon <sosthene.gued@gmail.com>2019-06-15 23:39:47 +0200
commitea9eec41d0e26d0c892f094156ebed08bdd70b81 (patch)
treeae5a850dec0b70f6299674fcac94d6e53064bc6d /src/Makefile
parent9beb5c0a7b24f4fe05e2ad6b0b0c24c5939c3fe3 (diff)
Modify config and history file location
Change the history file compilation (sc-iminfo) and the configuration file (.scimrc) to avoid bloat in the user's home folder
Diffstat (limited to 'src/Makefile')
-rwxr-xr-xsrc/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/Makefile b/src/Makefile
index fb08e9a..d986177 100755
--- a/src/Makefile
+++ b/src/Makefile
@@ -11,6 +11,11 @@ LIBDIR = $(prefix)/share/doc/$(name)
# This is where the man page goes.
MANDIR = $(prefix)/share/man/man1
+# This is where the config files go
+CONFIG_FOLDER = $(name)
+# This is where the history files go
+HISTORY_FOLDER= .cache/$(name)
+
# Change these to your liking or use `make CC=gcc` etc
#CC = cc
#YACC = bison -y
@@ -32,9 +37,9 @@ CFLAGS += -DDFLT_EDITOR=\"vim\"
# Comment out to disable color support
CFLAGS += -DUSECOLORS
# Command history file, relative to home directory. Comment out to disable commandline history
-CFLAGS += -DHISTORY_FILE=\".$(name)info\"
+CFLAGS += -DHISTORY_FILE=\"$(HISTORY_FOLDER)/info\"
# Input mode history. Same as previous, but for insert mode commands
-CFLAGS += -DINS_HISTORY_FILE=\".$(name)info\"
+CFLAGS += -DINS_HISTORY_FILE=\"$(HISTORY_FOLDER)/info\"
# Comment out to disable undo/redo support
CFLAGS += -DUNDO
# Maximum number of rows in spreadsheet. Up to 1048576