Makefile
changeset 1519 7b320068aa6b
parent 1408 8ea516ab3865
child 1608 9c9e7f91f4f3
equal deleted inserted replaced
1518:7965eec19342 1519:7b320068aa6b
    64 
    64 
    65 ################################################################
    65 ################################################################
    66 # Proj dirs/files.
    66 # Proj dirs/files.
    67 
    67 
    68 EL_FILES := $(wildcard *.el)
    68 EL_FILES := $(wildcard *.el)
       
    69 ELC_FILES := $(EL_FILES:.el=.elc)
    69 
    70 
    70 RST_FILES := $(wildcard *.rst)
    71 RST_FILES := $(wildcard *.rst)
    71 HTML_FILES := $(RST_FILES:.rst=.html)
    72 HTML_FILES := $(RST_FILES:.rst=.html)
    72 
    73 
    73 ################################################################
    74 ################################################################
   180 .PHONY: tar
   181 .PHONY: tar
   181 tar:
   182 tar:
   182 	tar cf dot-emacs.tar .emacs .emacs-my
   183 	tar cf dot-emacs.tar .emacs .emacs-my
   183 
   184 
   184 ################################################################
   185 ################################################################
       
   186 # Check targets.
       
   187 
       
   188 .PHONY: check
       
   189 check: check-byte-compile
       
   190 
       
   191 .PHONY: check-byte-compile
       
   192 check-byte-compile:
       
   193 	\
       
   194 $(EMACS) -f package-initialize --eval '(push "." load-path)'  --batch -f batch-byte-compile $(filter-out init.el,$(EL_FILES)) || :
       
   195 	rm -f $(ELC_FILES)
       
   196 
       
   197 ################################################################
   185 # Documentation targets.
   198 # Documentation targets.
   186 
   199 
   187 .PHONY: html
   200 .PHONY: html
   188 html: $(HTML_FILES)
   201 html: $(HTML_FILES)
   189 
   202 
   196 .PHONY: distclean
   209 .PHONY: distclean
   197 distclean: clean
   210 distclean: clean
   198 
   211 
   199 .PHONY: clean
   212 .PHONY: clean
   200 clean:
   213 clean:
   201 	rm -f dot-emacs.tar $(HTML_FILES)
   214 	rm -f dot-emacs.tar $(HTML_FILES) $(ELC_FILES)