1 .SUFFIXES
: # we don't need default suffix rules
3 $(error This make needs to be started
as a sub-make from the toplevel directory.
)
7 LISPF
= $(subst $(LISPO
),,$(wildcard *.el
))
8 LISPC
= $(LISPF
:%el
=%elc
)
10 .PHONY
: all compile compile-dirty autoloads
install clean cleanall clean-install
15 $(BATCH
) --eval
'(batch-byte-recompile-directory 0)'
19 org-install.el
: $(LISPF
)
21 --eval
"(require 'autoload)" \
22 --eval
'(find-file "$(LISPO)")' \
23 --eval
'(erase-buffer)' \
24 --eval
'(mapc (lambda (x) (generate-file-autoloads (symbol-name x))) (quote ($(LISPF))))' \
25 --eval
'(insert "\n(provide (quote org-install))\n")' \
26 --eval
'(insert "\n(defconst org-release \"$(ORGVERSION)\"\n \"The release version of org-mode. Inserted by installing org-mode\n or when a release is made.\")\n")' \
27 --eval
'(insert "\n(defconst org-git-version \"$(GITVERSION)\"\n \"The Git version of org-mode. Inserted by installing org-mode\n or when a release is made.\")\n")' \
28 --eval
'(save-buffer)'
30 install: $(LISPF
) compile autoloads
31 if
[ ! -d
$(lispdir
) ]; then
$(MKDIR
) $(lispdir
); else true
; fi
;
32 $(CP
) $(LISPC
) $(LISPF
) $(LISPO
) $(lispdir
)
41 if
[ ! -d
$(lispdir
) ]; then
$(MKDIR
) $(lispdir
); else true
; fi
;
42 $(RM
) $(lispdir
)/org
*.el
* $(lispdir
)/ob
*.el
*