Skip to content

Commit

Permalink
Add a byteclean target in the Makefile
Browse files Browse the repository at this point in the history
Similar to the `bytecompile` target, this is for helping with testing.
  • Loading branch information
vedang committed Oct 10, 2022
1 parent d6980bc commit 37b4c4f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ $(pkgfile): .cask/$(emacs_version) server/epdfinfo lisp/*.el
bytecompile: .cask/$(emacs_version)
$(CASK) exec $(emacs) --batch -L lisp -f batch-byte-compile lisp/*.el

# Clean bytecompiled sources
byteclean:
rm -f -- lisp/*.elc
rm -f -- lisp/*.eln

# Run ERT tests
test: all
PACKAGE_TAR=$(pkgfile) $(CASK) exec ert-runner
Expand Down Expand Up @@ -68,9 +73,8 @@ melpa-package: $(pkgfile)
-f $(pkgname)-melpa.tar

# Various clean targets
clean: server-clean
clean: server-clean byteclean
rm -f -- $(pkgfile)
rm -f -- lisp/*.elc
rm -f -- pdf-tools-readme.txt
rm -f -- pdf-tools-$(version).entry

Expand Down

0 comments on commit 37b4c4f

Please sign in to comment.