-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
31 lines (25 loc) · 1.07 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Makefile for dotfiles
# Copyright Jamie Culpon 2022
# All rights reserved. See LICENSE for more info.
BASEDIR=$(CURDIR)
USER_BIN=~/bin
USER_EMACS_DIR=~/.emacs.d/
REPO_EMACS_DIR=$(BASEDIR)/emacs.d/
emacsinit:
[ ! -d "$(USER_EMACS_DIR)" ] || mkdir -i USER_EMACS_DIR
cp -i REPO_EMACS_INIT USER_EMACS_INIT
slurpemacs:
@echo 'Copying user emacs config into repo...'
cp -i $(USER_EMACS_DIR)/init.el $(REPO_EMACS_DIR)/init.el
clean:
rm -i *~
help:
@echo 'Makefile for jculpon dotfiles. '
@echo ' '
@echo 'Usage: '
@echo ' make help: print this message '
@echo ' make clean: remove emacs backup files '
@echo ' make slurpemacs: copy emacs init.d from user home to this repo '
@echo ' make emacsinit: overwrite the local emacs init file with the repo copy'
@echo ''
.PHONY: clean help emacsinit slurpemacs