Skip to content

Commit

Permalink
Create Makefile for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
beacoder authored Apr 30, 2024
1 parent 75a1e99 commit e815c33
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
EMACS ?= emacs

# A space-separated list of required package names
DEPS = dash async

INIT_PACKAGES="(progn \
(require 'package) \
(push '(\"melpa\" . \"https://melpa.org/packages/\") package-archives) \
(package-initialize) \
(dolist (pkg '(PACKAGES)) \
(unless (package-installed-p pkg) \
(unless (assoc pkg package-archive-contents) \
(package-refresh-contents)) \
(package-install pkg))) \
)"

all: compile package-lint clean-elc

package-lint:
${EMACS} -Q --eval $(subst PACKAGES,package-lint,${INIT_PACKAGES}) -batch -f package-lint-batch-and-exit stock-tracker.el

compile: clean-elc
${EMACS} -Q --eval $(subst PACKAGES,${DEPS},${INIT_PACKAGES}) -L . -batch -f batch-byte-compile *.el

clean-elc:
rm -f f.elc

.PHONY: all compile clean-elc package-lint

0 comments on commit e815c33

Please sign in to comment.