-
Notifications
You must be signed in to change notification settings - Fork 261
/
default.mk
92 lines (71 loc) · 2.61 KB
/
default.mk
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
TOP := $(dir $(lastword $(MAKEFILE_LIST)))
## User options ######################################################
#
# You can override these settings in "config.mk" or on the command
# line.
#
# You might also want to set LOAD_PATH. If you do, then it must
# contain "-L .".
#
# If you don't do so, then the default is set in the "Load-Path"
# section below. The default assumes that all dependencies are
# installed either at "../<DEPENDENCY>", or when using package.el
# at "ELPA_DIR/<DEPENDENCY>-<HIGHEST-VERSION>".
PREFIX ?= /usr/local
sharedir ?= $(PREFIX)/share
lispdir ?= $(sharedir)/emacs/site-lisp/use-package
infodir ?= $(sharedir)/info
docdir ?= $(sharedir)/doc/use-package
statsdir ?= $(TOP)/stats
CP ?= install -p -m 644
MKDIR ?= install -p -m 755 -d
RMDIR ?= rm -rf
TAR ?= tar
SED ?= sed
EMACS ?= emacs
BATCH = $(EMACS) -Q --batch $(LOAD_PATH)
INSTALL_INFO ?= $(shell command -v ginstall-info || printf install-info)
MAKEINFO ?= makeinfo
MANUAL_HTML_ARGS ?= --css-ref /assets/page.css
## Files #############################################################
PKG = use-package
PACKAGES = use-package
TEXIPAGES = $(addsuffix .texi,$(filter-out git-commit,$(PACKAGES)))
INFOPAGES = $(addsuffix .info,$(filter-out git-commit,$(PACKAGES)))
HTMLFILES = $(addsuffix .html,$(filter-out git-commit,$(PACKAGES)))
HTMLDIRS = $(filter-out git-commit,$(PACKAGES))
PDFFILES = $(addsuffix .pdf,$(filter-out git-commit,$(PACKAGES)))
ELS = use-package.el
ELS += bind-key.el
ELS += bind-chord.el
ELS += use-package-bind-key.el
ELS += use-package-core.el
ELS += use-package-delight.el
ELS += use-package-diminish.el
ELS += use-package-ensure.el
ELS += use-package-jump.el
ELS += use-package-tests.el
ELS += use-package-chords.el
ELS += use-package-ensure-system-package.el
ELCS = $(ELS:.el=.elc)
ELMS = use-package.el $(filter-out $(addsuffix .el,$(PACKAGES)),$(ELS))
ELGS =
## Versions ##########################################################
VERSION = 2.4.4
USE_PACKAGE_VERSION = 2.4.4
EMACS_VERSION = 24.3
EMACSOLD := $(shell $(BATCH) --eval \
"(and (version< emacs-version \"$(EMACS_VERSION)\") (princ \"true\"))")
ifeq "$(EMACSOLD)" "true"
$(error At least version $(EMACS_VERSION) of Emacs is required)
endif
## Load-Path #########################################################
ifndef LOAD_PATH
ELPA_DIR ?= $(HOME)/.emacs.d/elpa
SYSTYPE := $(shell $(EMACS) -Q --batch --eval "(princ system-type)")
ifeq ($(SYSTYPE), windows-nt)
CYGPATH := $(shell cygpath --version 2>/dev/null)
endif
LOAD_PATH = -L $(TOP)
endif # ifndef LOAD_PATH
DOC_LOAD_PATH ?= $(LOAD_PATH) -L $(HOME)/emacs/site-lisp