-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
67 lines (57 loc) · 1.79 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
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
# Copyright (C) 2019-2023 Serghei Iakovlev <egrep@protonmail.ch>
#
# This file is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 3
# of the License, or (at your option) any later version.
#
# This file is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this file. If not, see <https://www.gnu.org/licenses/>.
include default.mk
.PHONY: clean
clean:
$(RM) *.elc
$(RM) test/*.elc
.PHONY: distclean
distclean: clean
$(RM) GPATH GRTAGS GTAGS
$(RM) package-quickstart.el
$(RM) -r elpa
.PHONY: install
install: init.el
$(RUNEMACS) --load $(TOP)/$<
.PHONY: build
build: init.el test/bc.el
$(RUNEMACS) --eval $(INIT_CODE) $(patsubst %,--load $(TOP)/%, $^)
.PHONY: checkdoc
checkdoc: test/checkdoc.el
$(RUNEMACS) --load $(TOP)/$<
.PHONY: linescount
linescount: test/lc.el
$(RUNEMACS) --load $(TOP)/$<
.PHONY: test
test: linescount checkdoc
.PHONY: help
help:
@echo ''
@echo 'Run "make install" first to install dependencies.'
@echo ''
@echo 'Available targets:'
@echo ' help: Show this help and exit'
@echo ' install: Install dependencies'
@echo ' checkdoc: Check doc for errors'
@echo ' linescount: Check the total line count of config files'
@echo ' build: Byte compile configuration files'
@echo ' test: Run the non-interactive test suite'
@echo ' clean: Remove byte compiled files and artifacts'
@echo ''
# Local Variables:
# fill-column: 80
# mode: makefile-gmake
# coding: utf-8-unix
# End: