Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/.cask/
/.keg/
/.mailmap
/php-mode-autoloads.el
php-mode-autoloads.el
*~
*.elc
13 changes: 7 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
EMACS ?= emacs
ELS = php.el php-align.el php-face.el php-project.el php-mode.el php-mode-debug.el
ELS = lisp/php.el lisp/php-align.el lisp/php-face.el lisp/php-project.el lisp/php-mode.el lisp/php-mode-debug.el
AUTOLOADS = php-mode-autoloads.el
ELCS = $(ELS:.el=.elc)

%.elc: %.el
$(EMACS) -Q -batch -L . -f batch-byte-compile $<
$(EMACS) -Q -batch -L lisp/ -f batch-byte-compile $<

all: autoloads $(ELCS) authors

Expand All @@ -24,11 +24,11 @@ AUTHORS.md: etc/git/AUTHORS.md.in .mailmap

autoloads: $(AUTOLOADS)

$(AUTOLOADS): php.el php-align.el php-face.el php-project.el php-mode-debug.el php-mode.el
$(EMACS) -Q -batch -L . --eval \
$(AUTOLOADS): lisp/php.el lisp/php-align.el lisp/php-face.el lisp/php-project.el lisp/php-mode-debug.el lisp/php-mode.el
$(EMACS) -Q -batch -L lisp/ --eval \
"(progn \
(require 'package) \
(package-generate-autoloads \"php-mode\" default-directory))"
(package-generate-autoloads \"php-mode\" (expand-file-name \"lisp\")))"

clean:
rm -f $(ELCS) $(AUTOLOADS)
Expand All @@ -52,6 +52,7 @@ dev:
# command.
test: clean all
touch tests/project/1/.git
$(EMACS) -Q -batch -L . -l tests/php-mode-test.el -f ert-run-tests-batch-and-exit
$(EMACS) -Q -batch -l lisp/php-mode-autoloads.el \
-l tests/php-mode-test.el -f ert-run-tests-batch-and-exit

.PHONY: all authors autoloads clean test
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.