Add emacs dep build recipe
[khome.git] / deps / emacs / Makefile
diff --git a/deps/emacs/Makefile b/deps/emacs/Makefile
new file mode 100644 (file)
index 0000000..9c6c26f
--- /dev/null
@@ -0,0 +1,18 @@
+# https://www.gnu.org/software/emacs/manual/html_node/efaq/Installing-Emacs.html
+
+VERSION     := 27.1
+SRC_DIR     := emacs-$(VERSION)
+SRC_TARBALL := $(SRC_DIR).tar.gz
+
+.PHONY: configure_build_install
+configure_build_install: data/$(SRC_DIR)
+       cd data/$(SRC_DIR) && ./configure
+       cd data/$(SRC_DIR) && make -j$(shell nproc)
+       cd data/$(SRC_DIR) && make -j$(shell nproc) install
+
+data/$(SRC_DIR): $(SRC_TARBALL)
+       cd data && tar -vxzf $(SRC_TARBALL)
+
+$(SRC_TARBALL):
+       mkdir -p data
+       cd data && wget -c https://ftp.gnu.org/pub/gnu/emacs/$(SRC_TARBALL)
This page took 0.02915 seconds and 4 git commands to generate.