forked from mirrors/org-mode
* lisp/dependencies.mk: remove file * lisp/Makefile: remove dependency on dependencies.mk Rationale: since we will always start with a "make clean", the dependencies file has become obsolete. The dependencies had not been updated for a long time anyway and there seems to be no way to produce them automatically.
51 lines
1.3 KiB
Makefile
51 lines
1.3 KiB
Makefile
ifeq ($(MAKELEVEL), 0)
|
|
$(error This make needs to be started as a sub-make from the toplevel directory.)
|
|
endif
|
|
|
|
GITVERSION = $(shell git describe --abbrev=6 HEAD)
|
|
GITSTATUS = $(shell git status -uno --porcelain)
|
|
ifneq ("$(GITSTATUS)", "")
|
|
GITVERSION := $(GITVERSION).dirty
|
|
endif
|
|
|
|
LISPO = org-install.el
|
|
LISPF = $(subst $(LISPO),,$(wildcard *.el))
|
|
LISPC = $(LISPF:%el=%elc)
|
|
|
|
.PHONY: all autoloads compile install clean cleanall clean-install
|
|
|
|
all 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
|
|
if [ ! -d $(lispdir) ]; then $(MKDIR) $(lispdir); else true; fi ;
|
|
$(CP) $(LISPC) $(LISPF) $(LISPO) $(lispdir)
|
|
-$(SED) -e 's/^\((defconst org-git-version \).*/\1 "$(GITVERSION)"/;' org.el > $(lispdir)/org.el
|
|
$(MAKE) $(lispdir)/org.elc
|
|
|
|
clean:
|
|
$(RM) *.elc
|
|
|
|
cleanall:
|
|
$(RM) *.elc $(LISPO)
|
|
|
|
clean-install:
|
|
if [ ! -d $(lispdir) ]; then $(MKDIR) $(lispdir); else true; fi ;
|
|
$(RM) $(lispdir)/org*.el* $(lispdir)/ob*.el*
|
|
|
|
.SUFFIXES: # we don't need default suffix rules
|
|
.SUFFIXES: .el .elc
|
|
|
|
.el.elc:
|
|
$(ELC) $<
|