Skip to content

Commit

Permalink
Update Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
smoeding committed Apr 30, 2024
1 parent 6a17a17 commit c0d4e40
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
CASK := cask
EMACS := emacs

SRCS := $(shell cask files)
SRCS := $(filter-out %-autoloads.el, $(shell cask files))
OBJS := $(SRCS:.el=.elc)
CHECKS := $(wildcard test/*-test.el)
PKGDIR := $(shell $(CASK) package-directory)
Expand All @@ -27,32 +27,28 @@ lint-package:
@$(CASK) $(EMACS) --batch \
--eval "(require 'package)" \
--eval "(setq package-archives '((\"melpa\" . \"http://melpa.org/packages/\")))" \
--eval "(push '(\"local-melpa\" . \"'$(abspath ../local-melpa/packages/)'\") package-archives)" \
--eval "(package-initialize)" \
--eval "(package-refresh-contents)" \
-L '$(abspath .)' \
-l package-lint -f package-lint-batch-and-exit \
$(filter-out %-autoloads.el, $(SRCS))
-l package-lint -f package-lint-batch-and-exit $(SRCS)

lint-elisp:
@$(CASK) $(EMACS) --batch \
--eval "(require 'package)" \
--eval "(setq package-archives '((\"melpa\" . \"http://melpa.org/packages/\")))" \
--eval "(push '(\"local-melpa\" . \"'$(abspath ../local-melpa/packages/)'\") package-archives)" \
--eval "(package-initialize)" \
--eval "(package-refresh-contents)" \
--eval "(setq make-backup-files nil)" \
-L '$(abspath .)' \
-l elisp-lint \
-f elisp-lint-files-batch --no-indent-character --no-fill-column \
$(filter-out %-autoloads.el, $(SRCS))
@$(RM) puppet-ts-mode-autoloads.el
$(SRCS)

%.elc: %.el $(PKGDIR)
@$(CASK) build

test/%.el: .FORCE
@$(CASK) emacs -Q -batch -L '$(abspath .)' -L test \
@$(CASK) $(EMACS) -Q -batch -L '$(abspath .)' -L test \
-l ert -l test/test-helper -l $@ \
-f ert-run-tests-batch-and-exit

Expand Down

0 comments on commit c0d4e40

Please sign in to comment.