dotemacs

My Emacs configuration
git clone git://git.entf.net/dotemacs
Log | Files | Refs | LICENSE

Makefile (1069B)


      1 -include ../config.mk
      2 include ../default.mk
      3 
      4 lisp: $(ELCS) loaddefs
      5 
      6 loaddefs: $(PKG)-autoloads.el
      7 
      8 %.elc: %.el
      9 	@printf "Compiling $<\n"
     10 	@$(EMACS) -Q --batch $(EMACS_ARGS) $(LOAD_PATH) -f batch-byte-compile $<
     11 
     12 CLEAN = $(ELCS) $(PKG)-autoloads.el
     13 
     14 clean:
     15 	@printf "Cleaning lisp/*...\n"
     16 	@rm -rf $(CLEAN)
     17 
     18 define LOADDEFS_TMPL
     19 ;;; $(PKG)-autoloads.el --- automatically extracted autoloads
     20 ;;
     21 ;;; Code:
     22 (add-to-list 'load-path (directory-file-name \
     23 (or (file-name-directory #$$) (car load-path))))
     24 
     25 ;; Local Variables:
     26 ;; version-control: never
     27 ;; no-byte-compile: t
     28 ;; no-update-autoloads: t
     29 ;; End:
     30 ;;; $(PKG)-autoloads.el ends here
     31 endef
     32 export LOADDEFS_TMPL
     33 #'
     34 
     35 $(PKG)-autoloads.el: $(ELS)
     36 	@printf "Generating $@\n"
     37 	@printf "%s" "$$LOADDEFS_TMPL" > $@
     38 	@$(EMACS) -Q --batch --eval "(progn\
     39 	(setq make-backup-files nil)\
     40 	(setq vc-handled-backends nil)\
     41 	(setq default-directory (file-truename default-directory))\
     42 	(setq generated-autoload-file (expand-file-name \"$@\"))\
     43 	(setq find-file-visit-truename t)\
     44 	(update-directory-autoloads default-directory))"