branch: elpa/flymake-pyrefly
commit 1c564fa7e073bf575b39aa019da6c780e3e00ba4
Author: Boris Shminke <[email protected]>
Commit: Boris Shminke <[email protected]>

    Eask Makefile
---
 Makefile | 96 ++++++++++++++++++++++++++++++++++++++++++++++++++++++----------
 1 file changed, 82 insertions(+), 14 deletions(-)

diff --git a/Makefile b/Makefile
index bdd2a968fd2..ead9a3f7d1f 100644
--- a/Makefile
+++ b/Makefile
@@ -1,20 +1,88 @@
-ALL_TARGETS = help clean test compile
-EMACS_TEST_JUNIT_REPORT=1
+##
+# Eask generated template Makefile
+#
+# File located in 
https://github.com/emacs-eask/template-elisp/blob/master/Makefile
+##
 
-.PHONY: ${ALL_TARGETS}
+EMACS ?= emacs
+EASK ?= eask
 
-help:
-       @echo Targets:
-       @for t in ${ALL_TARGETS}; do echo "- "$$t; done
+.PHONY: clean package install compile test checkdoc lint
 
-clean:
-       @rm -rf *.elc test/*.elc
+# CI entry point
+#
+# You can add or remove any commands here
+#
+# (Option 1): Basic for beginner, only tests for package's installation
+ci: clean package install compile
+# (Option 2): Advanced for a high-quality package
+#ci: clean package install compile checkdoc lint test
 
-test:
-       emacs --batch -L . -L tests -l test-flymake-pyrefly \
-       -f ert-run-tests-batch-and-exit
+# Build an package artefact, default to `dist` folder
+#
+# This is used to test if your package can be built correctly before the
+# package installation.
+package:
+       @echo "Packaging..."
+       $(EASK) package
+
+# Install package
+#
+# If your package is a single file package, you generally wouldn't need to 
+install:
+       @echo "Installing..."
+       $(EASK) install
 
+# Byte-compile package
+#
+# Compile all your package .el files to .elc
 compile:
-       emacs --batch -L . \
-       --eval "(setq byte-compile-error-on-warn t)" \
-       -f batch-byte-compile flymake-pyrefly.el
+       @echo "Compiling..."
+       $(EASK) compile
+
+# Run regression tests
+#
+# The default test is `ert`; but Eask also support other regression test!
+# See 
https://emacs-eask.github.io/Getting-Started/Commands-and-options/#-linting
+test:
+       @echo "Testing..."
+       $(EASK) install-deps --dev
+       $(EASK) test ert ./test/*.el
+
+# Run checkdoc
+#
+# See https://www.emacswiki.org/emacs/CheckDoc
+checkdoc:
+       @echo "Checking documentation..."
+       $(EASK) lint checkdoc --strict
+
+# Lint package metadata
+#
+# See https://github.com/purcell/package-lint
+lint:
+       @echo "Linting..."
+       $(EASK) lint package
+
+# Generate autoloads file
+#
+# NOTE: This is generally unnecessary
+autoloads:
+       @echo "Generating autoloads..."
+       $(EASK) autoloads
+
+# Generate -pkg file
+#
+# NOTE: This is generally unnecessary
+pkg-file:
+       @echo "Generating -pkg file..."
+       $(EASK) pkg-file
+
+# Clean up
+#
+# This will clean all the entire workspace including the following folders
+# and files
+#
+#   - .eask folder (sandbox)
+#   - all .elc files
+clean:
+       $(EASK) clean all

Reply via email to