2 $(error This make needs to be started
as a sub-make from the toplevel directory.
)
6 LISPF
= $(subst $(LISPO
),,$(wildcard *.el
))
7 LISPC
= $(LISPF
:%el
=%elc
)
9 .PHONY
: all autoloads compile
install clean cleanall clean-install
13 compile-dirty
: $(LISPC
)
17 org-install.el
: $(LISPF
)
19 --eval
"(require 'autoload)" \
20 --eval
'(find-file "$(LISPO)")' \
21 --eval
'(erase-buffer)' \
22 --eval
'(mapc (lambda (x) (generate-file-autoloads (symbol-name x))) (quote ($(LISPF))))' \
23 --eval
'(insert "\n(provide (quote org-install))\n")' \
24 --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")' \
25 --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")' \
26 --eval
'(save-buffer)'
28 install: $(LISPF
) compile autoloads
29 if
[ ! -d
$(lispdir
) ]; then
$(MKDIR
) $(lispdir
); else true
; fi
;
30 $(CP
) $(LISPC
) $(LISPF
) $(LISPO
) $(lispdir
)
39 if
[ ! -d
$(lispdir
) ]; then
$(MKDIR
) $(lispdir
); else true
; fi
;
40 $(RM
) $(lispdir
)/org
*.el
* $(lispdir
)/ob
*.el
*
42 .SUFFIXES
: # we don't need default suffix rules