Makefile
changeset 1666 06937ff1ec5f
parent 1665 3685e2321a9b
child 1667 7f70095fbf32
equal deleted inserted replaced
1665:3685e2321a9b 1666:06937ff1ec5f
    42 
    42 
    43 ################################################################
    43 ################################################################
    44 # Installation directories and files.
    44 # Installation directories and files.
    45 
    45 
    46 emacsdir := $(HOME)/.emacs.d
    46 emacsdir := $(HOME)/.emacs.d
    47 mylispdir := $(emacsdir)/my
    47 mylispdir := $(emacsdir)/mylisp
    48 
    48 
    49 # Compatibility version.
    49 # Compatibility version.
    50 COMPAT_VER := 1
    50 COMPAT_VER := 2
    51 COMPAT_FILE := $(emacsdir)/.emacs-ver
    51 COMPAT_FILE := $(emacsdir)/.emacs-ver
    52 
    52 
    53 ################################################################
    53 ################################################################
    54 # Build tool definition/switches.
    54 # Build tool definition/switches.
    55 
    55 
    62 endif
    62 endif
    63 
    63 
    64 ################################################################
    64 ################################################################
    65 # Proj dirs/files.
    65 # Proj dirs/files.
    66 
    66 
    67 EL_FILES := $(filter-out %.dev.el,$(wildcard *.el))
    67 EL_FILES := $(wildcard mylisp/*.el)
    68 ELC_FILES := $(EL_FILES:.el=.elc)
    68 ELC_FILES := $(EL_FILES:.el=.elc)
    69 
    69 
    70 RST_FILES := $(wildcard *.rst)
    70 RST_FILES := $(wildcard *.rst)
    71 HTML_FILES := $(RST_FILES:.rst=.html)
    71 HTML_FILES := $(RST_FILES:.rst=.html)
    72 
    72 
   179 check: check-byte-compile
   179 check: check-byte-compile
   180 
   180 
   181 .PHONY: check-byte-compile
   181 .PHONY: check-byte-compile
   182 check-byte-compile:
   182 check-byte-compile:
   183 	\
   183 	\
   184 $(EMACS) -f package-initialize --eval '(push "." load-path)'  --batch -f batch-byte-compile $(filter-out init.el,$(EL_FILES)) || :
   184 $(EMACS) -f package-initialize --eval '(push "mylisp" load-path)'  --batch -f batch-byte-compile $(EL_FILES) || :
   185 	rm -f $(ELC_FILES)
   185 	rm -f $(ELC_FILES)
   186 
   186 
   187 ################################################################
   187 ################################################################
   188 # Documentation targets.
   188 # Documentation targets.
   189 
   189