+ rm -f $(PKG).html $(PKG).pdf $(PKG).aux $(PKG).fn $(PKG).fns $(PKG).log $(PKG).toc
+
+define LOADDEFS_TPL
+(add-to-list 'load-path (directory-file-name\n\
+........................(or (file-name-directory #$$) (car load-path))))
+endef
+#' (ends emacs font-face garbage due to previous single quote)
+
+$(PKG)-loaddefs.el:
+ $(EMACS) -L $(PWD) \
+ --eval "(setq-default backup-inhibited t)" \
+ --eval "(setq generated-autoload-file \"$(PWD)/$@\")" \
+ --eval "(update-directory-autoloads \"$(PWD)\")"
+ sed -i "s/^;;; Code:$$/;;; Code:\n\n$(subst ., ,$(LOADDEFS_TPL))/" $@
+
+$(PKG).elc:
+ $(EMACS) -f batch-byte-compile $(@:.elc=.el)