branch: elpa/emacsql
commit 2dc794b4bf15c2e010a30cbb6c1990f61eb9b1f6
Author: Jonas Bernoulli <[email protected]>
Commit: Jonas Bernoulli <[email protected]>

    Add docs/Makefile and output statistics to docs/stats/
    
    For consistency with other packages I maintain.  This is most similar
    to `borg'.  Like for `no-littering' there is a "docs/" directory but
    no manual.  See `transient' for what a complete target set looks like.
---
 Makefile | 52 +++++++++++++++++++++++++++-------------------------
 1 file changed, 27 insertions(+), 25 deletions(-)

diff --git a/Makefile b/Makefile
index df02172de97..25e09d6d928 100644
--- a/Makefile
+++ b/Makefile
@@ -6,25 +6,28 @@ include default.mk
 all: lisp
 
 help:
-       $(info make all      -- Build lisp)
-       $(info make lisp     -- Build lisp)
-       $(info make redo     -- Build lisp from scratch)
-       $(info make test     -- Run tests)
-       $(info make clean    -- Remove built files)
+       $(info make all              -- Generate lisp and manual)
+       $(info make lisp             -- Generate byte-code and autoloads)
+       $(info make redo             -- Re-generate byte-code and autoloads)
+       $(info make stats            -- Generate statistics)
+       $(info make stats-upload     -- Publish statistics)
+       $(info make test             -- Run tests)
+       $(info make test-interactive -- Run tests interactively)
+       $(info make clean            -- Remove most generated files)
        @printf "\n"
 
-redo: clean lisp
 lisp: $(ELCS) autoloads check-declare
+redo: clean lisp
 
-autoloads: $(PKG)-autoloads.el
-
-%.elc: %.el
-       @printf "Compiling $<\n"
-       @$(EMACS_BATCH) --funcall batch-byte-compile $<
+stats:
+       @$(MAKE) -C docs stats
+stats-upload:
+       @$(MAKE) -C docs stats-upload
 
-check-declare:
-       @printf " Checking function declarations\n"
-       @$(EMACS_BATCH) --eval "(check-declare-directory default-directory)"
+test: lisp
+       @$(MAKE) -C test test
+test-interactive:
+       @$(MAKE) -C test test-interactive
 
 clean: clean-lisp clean-docs clean-test
 clean-lisp:
@@ -35,6 +38,16 @@ clean-docs:
 clean-test:
        @$(MAKE) -C test clean
 
+autoloads: $(PKG)-autoloads.el
+
+%.elc: %.el
+       @printf "Compiling $<\n"
+       @$(EMACS_BATCH) --funcall batch-byte-compile $<
+
+check-declare:
+       @printf " Checking function declarations\n"
+       @$(EMACS_BATCH) --eval "(check-declare-directory default-directory)"
+
 $(PKG)-autoloads.el: $(ELS)
        @printf " Creating $@\n"
        @$(EMACS_BATCH) --load autoload --eval "\
@@ -47,14 +60,3 @@ $(PKG)-autoloads.el: $(ELS)
   (write-region (autoload-rubric file \"package\" t) nil file)\
   (update-directory-autoloads default-directory))" \
        2>&1 | sed "/^Package autoload is deprecated$$/d"
-
-stats:
-       @$(MAKE) -C docs stats
-stats-upload:
-       @$(MAKE) -C docs stats-upload
-
-test: lisp
-       @$(MAKE) -C test test
-
-test-interactive:
-       @$(MAKE) -C test test-interactive

Reply via email to