summaryrefslogtreecommitdiff
blob: 606ff5d16de907355840d18bb69577d3c453939e (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-custom.elc company-ebuild-keywords.elc company-ebuild.elc


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