You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
1.9 KiB

.phony: all tangle autoload compile lint clean
build: tangle autoload compile
dev: tangle autoload compile lint
# No -q or -Q without ORG_PATH - if the user has a newer version of
# Org, we want to use it.
jabber.el:
if [ -z "${ORG_PATH}" ]; then \
echo ; \
echo "[WARNING] ORG_PATH is unset. Org versions older than 9.3.8 have a bug" ; \
echo "which result in them always using absolute paths in comment links in" ; \
echo "tangled source files. If your Org version is older than 9.3.8, please" ; \
echo "upgrade it before tangling." ; \
echo ; \
emacs --batch \
emacs --batch \
--eval="(progn (package-initialize) (require 'ob-tangle))" \
--eval='(org-babel-tangle-file "jabber.org")' ; \
else \
emacs -q -Q --batch \
--eval="(add-to-list 'load-path \"${ORG_PATH}\")" \
--eval="(require 'ob-tangle)" \
--eval='(org-babel-tangle-file "jabber.org")' ; \
fi
tangle: jabber.el
autoload:
emacs -q --batch --eval="(require 'package)" \
--eval="(package-generate-autoloads \"jabber\" default-directory)"
compile: tangle
emacs -q -Q --batch \
--eval="(add-to-list 'load-path \"$(pwd)\")" \
--eval="(add-to-list 'load-path \"jabber-fallback-lib\")" \
--eval='(byte-compile-file "jabber.el")' ; \
lint-check-declare: tangle
emacs -q -Q --batch --eval='(check-declare-file "jabber.el")'
lint-checkdoc: tangle
emacs -q -Q --batch --eval='(checkdoc-file "jabber.el")'
lint-package-lint: tangle
emacs -Q --batch --eval='(package-initialize)' \
--eval="(require 'package-lint)" \
-f 'package-lint-batch-and-exit' jabber.el
lint-relint: tangle
emacs -q -Q --batch --eval="(progn (package-initialize) (relint-file \"jabber.el\"))"
lint: lint-check-declare lint-checkdoc lint-package-lint lint-relint
clean-tangle:
-rm jabber.el
clean-elc:
-rm *.elc
clean: clean-elc