| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 | .NOTPARALLEL:	# always run this make serially.SUFFIXES:	# we don't need default suffix rulesifeq ($(MAKELEVEL), 0)  $(error This make needs to be started as a sub-make from the toplevel directory.)endififneq ($(ORG_ADD_CONTRIB),)  _ORG_ADD_EL_ := \	$(notdir \	$(wildcard \	$(addsuffix .el, \	$(addprefix ../contrib/lisp/, \	$(basename \	$(notdir $(ORG_ADD_CONTRIB)))))))endifLISPV 	:= org-version.elLISPI 	:= org-loaddefs.elLISPA 	:= $(LISPV) $(LISPI)LISPB 	:= $(LISPA:%el=%elc) org-install.elcLISPF 	:= $(filter-out $(LISPA),$(sort $(wildcard *.el) $(_ORG_ADD_EL_)))LISPC 	:= $(filter-out $(LISPB) $(LISPN:%el=%elc),$(LISPF:%el=%elc))_ORGCM_ := dirall single source slint1 slint2-include local.mk.PHONY:	all compile compile-dirty \	$(_ORGCM_) $(_ORGCM_:%=compile-%) \	autoloads addcontrib \	install clean cleanauto cleanall cleanelc clean-install# do not clean here, done in toplevel makeall compile compile-dirty::	 autoloadsifeq ($(filter-out $(_ORGCM_),$(ORGCM)),)	$(MAKE) compile-$(ORGCM)else	$(error ORGCM has illegal value $(ORGCM) (valid: $(_ORGCM_)))endifcompile-dirall:	dirallcompile-single: single $(LISPC)compile-source:	source dirallcompile-slint1:	dirall slint1compile-slint2:	source dirall slint1# internaldirall:	@$(info ==================== $@ ====================)	@$(ELCDIR)single:	@$(info ==================== $@ ====================)source: cleanelc	@$(info ==================== $@ ====================)	@$(foreach elc,$(LISPC),$(MAKE) $(elc) && $(RM) $(elc);)slint1:	@$(info ==================== $@ ====================)	@$(foreach elc,$(LISPC),$(RM) $(elc); $(MAKE) $(elc);)%.elc:	%.el	@$(info Compiling single $(abspath $<)...)	-@$(ELC) $<addcontrib:ifneq ($(ORG_ADD_CONTRIB),)	$(CP) $(addprefix ../contrib/lisp/,$(_ORG_ADD_EL_)) .endifautoloads:	cleanauto addcontrib $(LISPI) $(LISPV)$(LISPV):	$(LISPF)	@echo "org-version: $(ORGVERSION) ($(GITVERSION))"	@$(RM) $(@)	@$(MAKE_ORG_VERSION)$(LISPI):	$(LISPV) $(LISPF)	@echo "org-loaddefs: $(ORGVERSION) ($(GITVERSION))"	@$(RM) $(@)	@$(MAKE_ORG_INSTALL)install:	 compile $(LISPF)	if [ ! -d $(DESTDIR)$(lispdir) ] ; then \	  $(MKDIR) $(DESTDIR)$(lispdir) ; \	fi ;	$(CP) $(LISPC) $(LISPF) $(LISPA) $(DESTDIR)$(lispdir)cleanauto clean cleanall::	$(RM) $(LISPA) $(LISPB)clean cleanall cleanelc::	$(RM) *.elcclean-install:	if [ -d $(DESTDIR)$(lispdir) ] ; then \	  $(RM) $(DESTDIR)$(lispdir)/org*.el* $(DESTDIR)$(lispdir)/ob*.el* $(DESTDIR)$(lispdir)/ox*.el* ; \	fi ;
 |