Skip to content

Commit

Permalink
Update from template
Browse files Browse the repository at this point in the history
  • Loading branch information
vspinu committed Mar 15, 2019
1 parent 1759d47 commit c8577c4
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Expand Up @@ -11,4 +11,5 @@ tmp*
.ELPA
.MELPA
site/
*autoloads.el
*autoloads.el
*.elc
14 changes: 10 additions & 4 deletions Makefile
Expand Up @@ -11,9 +11,9 @@ LINTELS = $(filter-out poly-markdown-autoloads.el, $(ELS))

# export PM_VERBOSE

.PHONY: test version compile
.PHONY: all build checkdoc lint clean cleanall melpa elpa start test version

all: compile checkdoc test
all: build checkdoc test

build: version clean
@echo "******************* BUILDING $(MODULE) *************************"
Expand All @@ -25,7 +25,8 @@ checkdoc: version

lint: version
@$(EMACSBATCH) --load targets/melpa.el --load elisp-lint.el \
--funcall elisp-lint-files-batch --no-package-format --no-fill-column $(LINTELS)
--funcall elisp-lint-files-batch \
--no-fill-column --no-indent-character --no-package-format $(LINTELS)

clean:
rm -f $(OBJECTS)
Expand All @@ -43,7 +44,12 @@ start: version melpa
--load targets/melpa-init.el \
--load tests/*.el

test: version
startvs: version
$(EMACSRUN) -L . \
--load targets/local.el \
--load tests/*.el --load ~/.eBasic.el

test: build version
@echo "******************* Testing $(MODULE) ***************************"
$(EMACSBATCH) --load targets/melpa-init.el --load targets/test.el

Expand Down
5 changes: 5 additions & 0 deletions targets/local.el
@@ -0,0 +1,5 @@

;; add all poly* directories from the parent directory to load path
(let ((poly-dirs (directory-files (file-name-directory (directory-file-name default-directory))
t "^poly")))
(setq load-path (append poly-dirs load-path)))
2 changes: 1 addition & 1 deletion targets/melpa.el
Expand Up @@ -28,7 +28,7 @@
(package-initialize)
(package-refresh-contents)

(dolist (package package-deps)
(dolist (package (append dev-deps package-deps))
(if (package-installed-p package)
(when (package-outdated-p package)
(package-install-from-archive (cadr (assq package package-archive-contents))))
Expand Down

0 comments on commit c8577c4

Please sign in to comment.