mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-08-19 09:48:42 +00:00
* Makefile: add an optional include local.mk * default.mk: install lisp files into org subfolder by default * lisp/Makefile: new file to handle all make targets within lisp * lisp/dependencies.mk: dependencies, should rather be auto-generated * maint.mk: remove obsolete variable definitions * targets.mk: hand off to sub-make in ./lisp, remove unused targets
39 lines
804 B
Makefile
39 lines
804 B
Makefile
LISPO = org-install.el
|
|
LISPF = $(subst $(LISPO),,$(wildcard *.el))
|
|
LISPC = $(LISPF:%el=%elc)
|
|
|
|
include dependencies.mk
|
|
|
|
.PHONY: autoloads compile install clean cleanall
|
|
|
|
$(LISPC): dependencies.mk
|
|
|
|
compile: $(LISPC)
|
|
|
|
autoloads: $(LISPO)
|
|
|
|
org-install.el: $(LISPC)
|
|
$(BATCH) \
|
|
--eval "(require 'autoload)" \
|
|
--eval '(find-file "$(LISPO)")' \
|
|
--eval '(erase-buffer)' \
|
|
--eval '(mapc (lambda (x) (generate-file-autoloads (symbol-name x))) (quote ($(LISPF))))' \
|
|
--eval '(insert "\n(provide (quote org-install))\n")' \
|
|
--eval '(save-buffer)'
|
|
|
|
install: $(LISPF) compile autoloads
|
|
$(CP) $(LISPC) $(LISPF) $(LISPO) $(lispdir)
|
|
|
|
clean:
|
|
$(RM) $(LISPC)
|
|
|
|
cleanall:
|
|
$(RM) $(LISPC) $(LISPO)
|
|
|
|
.SUFFIXES: # we don't need default suffix rules
|
|
.SUFFIXES: .el .elc
|
|
|
|
.el.elc:
|
|
$(info in subdir lisp)
|
|
$(ELC) $<
|