Last active
March 26, 2020 08:03
-
-
Save kosh04/cbecab9afc38e31f97be2db35353b57a to your computer and use it in GitHub Desktop.
Simple makefile for build Emacs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Build Emacs Recipe | |
usage = Usage: make -f $(notdir $(MAKEFILE_LIST)) [EMACS=${EMACS}] [PREFIX=${PREFIX}] | |
PREFIX?=${HOME}/.local | |
EMACS?=emacs-26.3 | |
EMACS_ARCHIVE=${EMACS}.tar.xz | |
EMACS_ARCHIVE_URL=http://ftpmirror.gnu.org/emacs/${EMACS_ARCHIVE} | |
# XXX: from etc/NEWS.24 | |
# ** You can use `NO_BIN_LINK=t make install' to prevent the installation | |
# overwriting "emacs" in the installation bin/ directory with a link | |
# to "emacs-VERSION". | |
export NO_BIN_LINK=t | |
default: build install | |
${EMACS_ARCHIVE}: | |
curl -L -O ${EMACS_ARCHIVE_URL} | |
build: ${EMACS_ARCHIVE} | |
tar xf ${EMACS_ARCHIVE} | |
cd ${EMACS} && ./configure --without-all --without-x --with-gnutls=yes --prefix=${PREFIX} | |
cd ${EMACS} && make -j9 | |
install: | |
cd ${EMACS} && make install-strip prefix=${PREFIX} | |
help usage: | |
$(info ${usage}) | |
.PHONY: build install help usage |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment