org-e-latex: Correctly export statistics cookies with percents
[org-mode.git] / lisp / Makefile
blobee0caaf8f5c917dfcd28e98437dc7e968bdc3b5f
1 .NOTPARALLEL: # always run this make serially
2 .SUFFIXES: # we don't need default suffix rules
3 ifeq ($(MAKELEVEL), 0)
4 $(error This make needs to be started as a sub-make from the toplevel directory.)
5 endif
7 LISPV = org-version.el
8 LISPI = org-install.el
9 LISPA = $(LISPV) $(LISPI)
10 LISPF = $(filter-out $(LISPA),$(wildcard *.el))
11 LISPC = $(filter-out $(LISPN:%el=%elc),$(LISPF:%el=%elc))
13 .PHONY: all compile compile-dirty compile-single \
14 autoloads \
15 install clean cleanauto cleanall clean-install
17 # do not clean here, done in toplevel make
18 all compile:: autoloads
19 all compile compile-dirty:: $(LISPI) $(LISPV)
20 $(ELCDIR)
21 compile-single: clean autoloads $(LISPC)
22 compile-source: clean autoloads
23 @$(foreach elc,$(LISPC),$(MAKE) $(elc) && $(RM) $(elc);)
25 %.elc: %.el
26 -$(ELC) $(<)
28 autoloads: cleanauto $(LISPI) $(LISPV)
30 $(LISPV): $(LISPF)
31 @echo "org-version: $(ORGVERSION) ($(GITVERSION))"
32 @$(RM) $(@)
33 @$(MAKE_ORG_VERSION)
35 $(LISPI): $(LISPV) $(LISPF)
36 @echo "org-install: $(ORGVERSION) ($(GITVERSION))"
37 @$(RM) $(@)
38 @$(MAKE_ORG_INSTALL)
40 install: $(LISPF) compile
41 if [ ! -d $(DESTDIR)$(lispdir) ] ; then \
42 $(MKDIR) $(DESTDIR)$(lispdir) ; \
43 fi ;
44 $(CP) $(LISPC) $(LISPF) $(LISPA) $(DESTDIR)$(lispdir)
46 cleanauto clean cleanall::
47 $(RM) $(LISPA) $(LISPA:%el=%elc)
48 clean cleanall::
49 $(RM) *.elc
51 clean-install:
52 if [ -d $(DESTDIR)$(lispdir) ] ; then \
53 $(RM) $(DESTDIR)$(lispdir)/org*.el* $(DESTDIR)$(lispdir)/ob*.el* ; \
54 fi ;