Revert "Makefile: allow for different compilation methods"

This reverts commit 3e63c3e97a.
This commit is contained in:
Bastien Guerry 2012-08-15 00:10:32 +02:00
parent 32e3257c2d
commit 510f6464b0
4 changed files with 25 additions and 37 deletions

View File

@ -32,6 +32,8 @@ help helpall::
helpall:: helpall::
$(info make test - ditto) $(info make test - ditto)
$(info make compile-dirty - build only stale Org ELisp files) $(info make compile-dirty - build only stale Org ELisp files)
$(info make compile-single - build using one Emacs process per file)
$(info make compile-source - ditto, but immediately remove byte-compiled file )
$(info make test-dirty - check without building first) $(info make test-dirty - check without building first)
$(info ) $(info )
$(info Compatibility) $(info Compatibility)

View File

@ -131,10 +131,3 @@ SUDO = sudo
# Name of the program to install info files # Name of the program to install info files
# INSTALL_INFO = ginstall-info # Debian: avoid harmless warning message # INSTALL_INFO = ginstall-info # Debian: avoid harmless warning message
INSTALL_INFO = install-info INSTALL_INFO = install-info
# target variant for 'compile'
# _COMPILE_ = single # one Emacs process per compilation
# _COMPILE_ = source # ditto, but remove compiled file immediately
# _COMPILE_ = slint1 # possibly elicit more warnings
# _COMPILE_ = slint2 # possibly elicit even more warnings
_COMPILE_ = dirall

View File

@ -7,31 +7,23 @@ endif
LISPV = org-version.el LISPV = org-version.el
LISPI = org-install.el LISPI = org-install.el
LISPA = $(LISPV) $(LISPI) LISPA = $(LISPV) $(LISPI)
LISPF = $(filter-out $(LISPA),$(sort $(wildcard *.el))) LISPF = $(filter-out $(LISPA),$(wildcard *.el))
LISPC = $(filter-out $(LISPN:%el=%elc),$(LISPF:%el=%elc)) LISPC = $(filter-out $(LISPN:%el=%elc),$(LISPF:%el=%elc))
.PHONY: all compile compile-dirty \ .PHONY: all compile compile-dirty compile-single \
compile-single compile-source compile-slint1 compile-slint2 \ autoloads \
autoloads \ install clean cleanauto cleanall clean-install
install clean cleanauto cleanall cleanelc clean-install
# do not clean here, done in toplevel make # do not clean here, done in toplevel make
all compile compile-dirty:: autoloads all compile:: autoloads
$(MAKE) compile-$(_COMPILE_) all compile compile-dirty:: $(LISPI) $(LISPV)
$(ELCDIR)
compile-dirall: compile-single: clean autoloads $(LISPC)
@$(ELCDIR) compile-source: clean autoloads
compile-single: $(LISPC)
compile-source: cleanelc
@$(foreach elc,$(LISPC),$(MAKE) $(elc) && $(RM) $(elc);) @$(foreach elc,$(LISPC),$(MAKE) $(elc) && $(RM) $(elc);)
compile-slint1: compile-dirall
@$(foreach elc,$(LISPC),$(RM) $(elc); $(MAKE) $(elc);)
compile-slint2:
$(MAKE) compile-source compile-slint1
%.elc: %.el %.elc: %.el
@$(info Compiling single $(abspath $<)...) -$(ELC) $(<)
-@$(ELC) $<
autoloads: cleanauto $(LISPI) $(LISPV) autoloads: cleanauto $(LISPI) $(LISPV)
@ -53,7 +45,7 @@ install: $(LISPF) compile
cleanauto clean cleanall:: cleanauto clean cleanall::
$(RM) $(LISPA) $(LISPA:%el=%elc) $(RM) $(LISPA) $(LISPA:%el=%elc)
clean cleanall cleanelc:: clean cleanall::
$(RM) *.elc $(RM) *.elc
clean-install: clean-install:

View File

@ -28,7 +28,7 @@ endif
cleancontrib cleantesting cleanutils cleancontrib cleantesting cleanutils
cleanrel clean-install cleanelc cleandirs \ cleanrel clean-install cleanelc cleandirs \
cleanlisp cleandoc cleandocs cleantest \ cleanlisp cleandoc cleandocs cleantest \
compile compile-dirty uncompiled \ compile compile-single compile-source compile-dirty uncompiled \
config config-test config-exe config-all config-eol config config-test config-exe config-all config-eol
CONF_BASE = EMACS DESTDIR CONF_BASE = EMACS DESTDIR
@ -75,7 +75,7 @@ local.mk:
all compile:: all compile::
$(foreach dir, doc lisp, $(MAKE) -C $(dir) clean;) $(foreach dir, doc lisp, $(MAKE) -C $(dir) clean;)
compile compile-dirty:: compile compile-dirty compile-single compile-source::
$(MAKE) -C lisp $@ $(MAKE) -C lisp $@
all clean-install:: all clean-install::
$(foreach dir, $(SUBDIRS), $(MAKE) -C $(dir) $@;) $(foreach dir, $(SUBDIRS), $(MAKE) -C $(dir) $@;)
@ -118,25 +118,26 @@ clean: cleanrel
$(MAKE) -C lisp clean $(MAKE) -C lisp clean
$(MAKE) -C doc clean $(MAKE) -C doc clean
cleanall: cleandirs cleantest cleanall: cleandirs cleantest cleancontrib cleantesting cleanutils
-$(FIND) . -name \*~ -o -name \*# -o -name .#\* -exec $(RM) {} \; -$(FIND) . -name \*~ -o -name \*# -o -name .#\* -exec $(RM) {} \;
-$(FIND) contrib testing UTILITIES -name \*~ -o -name \*.elc -exec $(RM) {} \;
cleancontrib cleantesting cleanUTILITIES: cleancontrib:
-$(FIND) $(@:clean%=%) -name \*~ -o -name \*.elc -exec $(RM) {} \; -$(FIND) contrib -name \*~ -o -name \*.elc -exec $(RM) {} \;
cleanutils: cleanUTILITIES cleantesting:
-$(FIND) testing -name \*~ -o -name \*.elc -exec $(RM) {} \;
cleanutils:
-$(FIND) UTILITIES -name \*~ -o -name \*.elc -exec $(RM) {} \;
cleanrel: cleanrel:
$(RMR) RELEASEDIR $(RMR) RELEASEDIR
$(RMR) org-7.* $(RMR) org-7.*
$(RMR) org-7*zip org-7*tar.gz $(RMR) org-7*zip org-7*tar.gz
cleanelc: cleanelc cleanlisp:
$(MAKE) -C lisp $@
cleanlisp:
$(MAKE) -C lisp clean $(MAKE) -C lisp clean
-$(FIND) lisp -name \*~ -exec $(RM) {} \;
cleandoc cleandocs: cleandoc cleandocs:
$(MAKE) -C doc clean $(MAKE) -C doc clean