provide for .el files that should be installed, but not compiled

* lisp/Makefile: Add LISPN (empty by default) which is used to filter
  out files from LISPC.  This means that install will not fail due to
  a corresponding .elc missing.  This might become useful if lisp
  source files set "no-byte-compile: t" for whatever reason.
This commit is contained in:
Achim Gratz 2012-06-04 21:27:27 +02:00
parent 8db7b8fc19
commit 0c9ba74955
1 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@ LISPV = org-version.el
LISPI = org-install.el LISPI = org-install.el
LISPA = $(LISPV) $(LISPI) LISPA = $(LISPV) $(LISPI)
LISPF = $(filter-out $(LISPA),$(wildcard *.el)) LISPF = $(filter-out $(LISPA),$(wildcard *.el))
LISPC = $(LISPF:%el=%elc) LISPC = $(filter-out $(LISPN:%el=%elc),$(LISPF:%el=%elc))
.PHONY: all compile compile-dirty \ .PHONY: all compile compile-dirty \
autoloads \ autoloads \
@ -16,10 +16,10 @@ LISPC = $(LISPF:%el=%elc)
# do not clean here, done in toplevel make # do not clean here, done in toplevel make
all compile:: autoloads all compile:: autoloads
all compile compile-dirty:: $(LISPA) all compile compile-dirty:: $(LISPI) $(LISPV)
$(ELCDIR) $(ELCDIR)
autoloads: cleanauto $(LISPA) autoloads: cleanauto $(LISPI) $(LISPV)
$(LISPV): $(LISPF) $(LISPV): $(LISPF)
@echo "org-version: $(ORGVERSION) ($(GITVERSION))" @echo "org-version: $(ORGVERSION) ($(GITVERSION))"