emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/alect-themes ae90b8e 211/269: Add Makefile


From: ELPA Syncer
Subject: [nongnu] elpa/alect-themes ae90b8e 211/269: Add Makefile
Date: Thu, 21 Oct 2021 17:59:21 -0400 (EDT)

branch: elpa/alect-themes
commit ae90b8e05a14e3439a1e4061111fcc3f75776880
Author: Alex Kost <alezost@gmail.com>
Commit: Alex Kost <alezost@gmail.com>

    Add Makefile
---
 Makefile | 42 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)

diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..ddfc672
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,42 @@
+# This is not a full-featured Makefile and it is not intended to be used
+# to install "alect-themes" package to your system.  Its purposes are:
+#
+# - to byte-compile *.el files (using 'make'): to make sure that there
+#   are no compilation warnings;
+#
+# - to run the tests (using 'make check').
+
+EMACS = emacs
+
+TOP := $(dir $(lastword $(MAKEFILE_LIST)))
+LOAD_PATH = -L $(TOP)
+EMACS_BATCH = $(EMACS) -batch -Q $(LOAD_PATH)
+
+ELS =                                          \
+  alect-themes.el                              \
+  alect-light-theme.el                         \
+  alect-light-alt-theme.el                     \
+  alect-dark-theme.el                          \
+  alect-dark-alt-theme.el                      \
+  alect-black-theme.el                         \
+  alect-black-alt-theme.el                     \
+
+ELCS = $(ELS:.el=.elc)
+
+all: $(ELCS)
+
+%.elc: %.el
+       @printf "Compiling $<\n"
+       @$(EMACS_BATCH) --eval "\
+         (when (file-exists-p \"$@\")\
+           (delete-file \"$@\"))" \
+       -f batch-byte-compile $<
+
+check:
+       @$(EMACS_BATCH) --eval "(progn\
+       (load-file \"tests/alect-tests.el\")\
+       (ert-run-tests-batch-and-exit))"
+
+clean:
+       @printf "Removing *.elc...\n"
+       @$(RM) $(ELCS)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]