Skip to content

Commit

Permalink
Add examples/ to the Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
DamienCassou committed Apr 14, 2017
1 parent cd4ab2b commit 288f811
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Makefile
Expand Up @@ -12,6 +12,7 @@ EMACS_D = ~/.emacs.d
USER_ELPA_D = $(EMACS_D)/elpa

SRCS = $(filter-out %-pkg.el, $(wildcard *.el))
EXAMPLES = $(wildcard examples/*.el)
TESTS = $(wildcard test/*.el)
TAR = $(DIST)/hierarchy-$(VERSION).tar

Expand All @@ -35,7 +36,7 @@ clean-all : clean
rm -rf $(PKG_DIR)

clean-elc :
rm -f *.elc test/*.elc
rm -f *.elc test/*.elc examples/*.elc

clean : clean-elc
rm -rf $(DIST)
Expand All @@ -58,9 +59,9 @@ lint : $(SRCS) clean-elc
# Byte compile all and stop on any warning or error
${CASK} emacs $(EMACSFLAGS) \
--eval "(setq byte-compile-error-on-warn t)" \
-L . -f batch-byte-compile ${SRCS} ${TESTS}
-L . -f batch-byte-compile ${SRCS} ${EXAMPLES} ${TESTS}

# Run package-lint to check for packaging mistakes
${CASK} emacs $(EMACSFLAGS) \
-l package-lint.el \
-f package-lint-batch-and-exit hierarchy.el
-f package-lint-batch-and-exit ${SRCS}

0 comments on commit 288f811

Please sign in to comment.