TOP := $(dir $(lastword $(MAKEFILE_LIST))) PKG = transient ELS = $(PKG).el ELCS = $(ELS:.el=.elc) DEPS = compat DEPS += seq DOMAIN ?= magit.vc CFRONT_DIST ?= E2LUHBKU1FBV02 VERSION ?= $(shell test -e $(TOP).git && git describe --tags --abbrev=0 | cut -c2-) REVDESC := $(shell test -e $(TOP).git && git describe --tags) EMACS ?= emacs EMACS_ARGS ?= --eval "(progn \ (put 'if-let 'byte-obsolete-info nil) \ (put 'when-let 'byte-obsolete-info nil))" LOAD_PATH ?= $(addprefix -L ../../,$(DEPS)) LOAD_PATH += -L $(TOP)lisp ifndef ORG_LOAD_PATH ORG_LOAD_PATH = -L ../../org/lisp endif INSTALL_INFO ?= $(shell command -v ginstall-info || printf install-info) MAKEINFO ?= makeinfo MANUAL_HTML_ARGS ?= --css-ref /assets/page.css GITSTATS ?= gitstats GITSTATS_DIR ?= $(TOP)docs/stats GITSTATS_ARGS ?= -c style=https://magit.vc/assets/stats.css -c max_authors=999 %.elc: %.el @printf "Compiling $<\n" @$(EMACS) -Q --batch $(EMACS_ARGS) $(LOAD_PATH) -f batch-byte-compile $<