1 .NOTPARALLEL
: # always run this make serially
2 .SUFFIXES
: # we don't need default suffix rules
4 $(error This make needs to be started
as a sub-make from the toplevel directory.
)
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 \
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
)
21 compile-single
: clean autoloads
$(LISPC
)
22 compile-source
: clean autoloads
23 @
$(foreach elc
,$(LISPC
),$(MAKE
) $(elc
) && $(RM
) $(elc
);)
28 autoloads
: cleanauto
$(LISPI
) $(LISPV
)
31 @echo
"org-version: $(ORGVERSION) ($(GITVERSION))"
35 $(LISPI
): $(LISPV
) $(LISPF
)
36 @echo
"org-install: $(ORGVERSION) ($(GITVERSION))"
40 install: $(LISPF
) compile
41 if
[ ! -d
$(DESTDIR
)$(lispdir
) ] ; then \
42 $(MKDIR
) $(DESTDIR
)$(lispdir
) ; \
44 $(CP
) $(LISPC
) $(LISPF
) $(LISPA
) $(DESTDIR
)$(lispdir
)
46 cleanauto
clean cleanall
::
47 $(RM
) $(LISPA
) $(LISPA
:%el
=%elc
)
52 if
[ -d
$(DESTDIR
)$(lispdir
) ] ; then \
53 $(RM
) $(DESTDIR
)$(lispdir
)/org
*.el
* $(DESTDIR
)$(lispdir
)/ob
*.el
* ; \