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
= $(LISPF
:%el
=%elc
)
13 .PHONY
: all compile compile-dirty \
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
:: $(LISPA
)
22 autoloads
: cleanauto
$(LISPA
)
25 @echo
"org-version: $(ORGVERSION) ($(GITVERSION))"
29 $(LISPI
): $(LISPV
) $(LISPF
)
30 @echo
"org-install: $(ORGVERSION) ($(GITVERSION))"
34 install: $(LISPF
) compile
35 if
[ ! -d
$(DESTDIR
)$(lispdir
) ] ; then \
36 $(MKDIR
) $(DESTDIR
)$(lispdir
) ; \
38 $(CP
) $(LISPC
) $(LISPF
) $(LISPA
) $(DESTDIR
)$(lispdir
)
40 cleanauto
clean cleanall
::
41 $(RM
) $(LISPA
) $(LISPA
:%el
=%elc
)
46 if
[ -d
$(DESTDIR
)$(lispdir
) ] ; then \
47 $(RM
) $(DESTDIR
)$(lispdir
)/org
*.el
* $(DESTDIR
)$(lispdir
)/ob
*.el
* ; \