summaryrefslogtreecommitdiff
blob: c89fa8255a2a4fd7abfa86c974b4e8a270e00e27 (plain)
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
PWD         ?= $(shell pwd)

EMACS       := emacs
FIND        := find

EMACFLAGS   := --batch -q --no-site-file -L $(PWD)
EMACSCMD     = $(EMACS) $(EMACFLAGS)


.PHONY: all
all: clean compile


.PHONY: clean
clean:
	$(FIND) $(PWD) -iname "*.elc" -delete


%.elc:
	$(EMACSCMD) --eval "(byte-compile-file \"$(*).el\" 0)"

.PHONY: compile
compile: company-ebuild-keywords.elc company-ebuild.elc


.PHONY: install
install: compile
	$(EMACSCMD) \
		--eval "(require 'package)" \
		--eval "(package-install-file \"$(PWD)\")"