[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/phps-mode 236f05e 071/405: Updated makefile to not use
From: |
Stefan Monnier |
Subject: |
[elpa] externals/phps-mode 236f05e 071/405: Updated makefile to not use hard-coded path to emacs |
Date: |
Sat, 13 Jul 2019 09:59:45 -0400 (EDT) |
branch: externals/phps-mode
commit 236f05ea1fabff2f805f25f9dd7972c73a9852dd
Author: Christian Johansson <address@hidden>
Commit: Christian Johansson <address@hidden>
Updated makefile to not use hard-coded path to emacs
---
Makefile | 16 +++++++++++-----
README.md | 8 +++-----
2 files changed, 14 insertions(+), 10 deletions(-)
diff --git a/Makefile b/Makefile
index 64b18c6..89a64ee 100644
--- a/Makefile
+++ b/Makefile
@@ -1,29 +1,35 @@
-EMACS = "/Users/christianjohansson/Documents/emacs/src/emacs"
+EMACS = emacs
+ifdef emacs
+ EMACS = $(emacs)
+endif
EMACS_CMD := $(EMACS) -Q -batch -L .
EL := phps-mode.el phps-wy.el
ELC := $(EL:.el=.elc)
+.PHONY: clean
clean:
rm -f $(ELC)
+.PHONE: compile
compile:
$(ELC)
%.elc: %.el
$(EMACS_CMD) -f batch-byte-compile $<
-test:
+.PHONY: tests
+tests:
clean test-functions test-lexer test-parser
+.PHONY: test-functions
test-functions:
$(EMACS_CMD) -l phps-test-functions.el
+.PHONY: test-lexer
test-lexer:
$(EMACS_CMD) -l phps-test-lexer.el
-
+.PHONY: test-parser
test-parser:
$(EMACS_CMD) -l phps-test-parser.el
-
-.PHONY: clean compile test test-functions test-lexer test-parser
diff --git a/README.md b/README.md
index a15bc0e..2cfd7c6 100644
--- a/README.md
+++ b/README.md
@@ -20,11 +20,11 @@ With current progress estimates:
## Unit tests
-Not fully ready yet.
+If you have emacs at a customized location prefix the commands with your path,
i.e.
-### Lexer
+`export emacs="~~/Documents/emacs/src/emacs" && make test-lexer`
-Emacs24+ path need to be updated in Makefile first.
+### Lexer
``` bash
make test-lexer
@@ -40,8 +40,6 @@ make test-parser
### Functions
-Emacs24+ path need to be updated in Makefile first.
-
``` bash
make test-functions
```
- [elpa] externals/phps-mode 3f4c344 056/405: Fixed detection of doc comment blocks, (continued)
- [elpa] externals/phps-mode 3f4c344 056/405: Fixed detection of doc comment blocks, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode 3824abf 060/405: Resolved indent with trailing parenthesis, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode a61cb8b 062/405: Fixed issue with doc comment indentation, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode 6c597fb 065/405: Updated readme, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode 0ca9fe8 058/405: Detection of point inside doc comment block improved, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode 67f9a7a 057/405: Moved lexer-get-point-data to functions, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode 27cd705 069/405: Updated readme, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode 58300fd 070/405: More updates of readme, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode 86ec35f 066/405: Incremental lexer working somewhat, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode ec71e15 074/405: Fixed bug where token-numbers are not defined, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode 236f05e 071/405: Updated makefile to not use hard-coded path to emacs,
Stefan Monnier <=
- [elpa] externals/phps-mode bf633d2 061/405: Added test for indent of final line of doc comment block, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode ba8165a 063/405: Fixed bug with brace count not including braces inside double quoted strings, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode 99dfc68 067/405: Incremental-lexer deletes affected overlays, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode 90d059c 064/405: Fixed bug in incremental lexer logic, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode 1be9270 068/405: Updated README, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode e57f1e1 075/405: Skipping indentation if it's already correct, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode c57fb5b 073/405: Improved indentation of trailing opening brace, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode 5e30a65 076/405: Added TODO items, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode 94d4814 078/405: Added test for moving lexer tokens, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode a59ef7b 079/405: More unit tests for moving lexer token positions, Stefan Monnier, 2019/07/13